Change $nick to $1 and put it into an $iif().

As for testing, run it on a test client and change things and make sure it works there. You'll have your answer more quickly than asking here and it saves us time trying to look through your code when you could have gotten your answer in 5 seconds yourself.


Invision Support
#Invision on irc.irchighway.net