in reply to Script replaces instead of add

geekism:

It looks like adddelays is using a hash to store the messages: each nickname gets a single message. If you instead use a hash of arrays, you could have multiple messages for each nickname. It may make delay management a bit trickier, though--do you want to remove *one* delayed message from a nickname, or all. If one, *which* one?

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Script replaces instead of add
by geekism (Initiate) on Jul 23, 2015 at 04:34 UTC
    My goal is to ADD to the current hash. the way it is now. is it over-writes the entry for 'nick', instead of adding TO the queue. If a output of it in action is required, i can paste one.

      OK, then, you could also try changing the function to add the new delayed message to the one you currently have. As I mentioned, you're simply replacing the current value in the hash. If you want to add it to the nickname, then you'll have to pull out the current message (if any) and combine it with the new message, and only *then* assign the value to the hash.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.