So what I am looking to do is make script that will allow me to add specific items to a queue that can be queried later. Also is it possible to instead of only be able to list the items, it lists one at a time instead a full list. Any help with this would be much appreciated. Thanks

on *:text:!addqueue *:#: {
set %queue $+ $2
msg $chan $2 has been added to the queue

on *:text:!listqueue:#: {
msg $chan The following items in the queue are: $2