You're getting too complicated for what the OP needs. The OP isn't testing specific nicks or channels... just a specific phrase. Also, as was mentioned to you previously, you do not need to send $nick or $chan to an alias. It's unnecessary.

You are also only incrementing the lines if the text is in the line, which isn't what was requested. The increment should happen every line of text in the channel.


Invision Support
#Invision on irc.irchighway.net