When I type /debug @whatever it open a window and show me login part kicks and anything going on in the channel am in.

when I whois to check if its a registered nick on login my script will autovoice in #chat.
The problem is when my script does a whois in another channel I am also on then when a register nick is whois I see a msg in #chat saying this *nickname is not on #chat