why not just use $nick ison $chan ?


I registered; you should too.