In a on nick event, $chan return $null (you don't change your nick in a specific channel).
Generaly you have to use $comchan($nick\$newnick,0) in a while smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel