I know that how he explained the problem is unclear, but you can get from his post that the problem is that they have another bot displaying text of person from another channel, prefixing these messages by the nickname, making $1 not being !player (or %c $+ player here) but he wants it to work in both case

Btw, his code was using a goto loop to perfom a sockread while there's data to read (a while loop is better but that's not the point), which is faster than letting retriggering the event, as said in the help file, you removed that.
Also his code was already working with variable's name based on "item" name, and you removed the condition that will close the socket if a line isn't formated correctly, in that case your code will still send a msg with empty values

Last edited by Wims; 13/05/11 09:30 PM.

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