2:$nick *IS* an invalid command. What is it you're trying to accomplish with that script? If you want it to output 2: followed by the nick of the person joining (not sure why you would want to output 2: ), then put a space after the colon and use msg $chan or msg $nick to tell it what you want it to do.
Last edited by Riamus2; 29/06/11 06:54 PM.