I tried the code myself, it works fine.
If it sends two messages, it means you have another on input doing basically the same thing.
Did you remove any old on input event taken from here before putting the new one ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel