Yours would work to a degree, if only one person at a time used the script, if person1 typed !ping in #chan1, and person2 typed it in #chan2 at the same time, both replies would goto #chan2.


Eamonn.