This is what the server sends
:nick!identd@some.host NICK :newnick
As you can see, there is no channel parameter involved, you need to loop through $comchan($nick,N).