mIRC Home    About    Download    Register    News    Help

Print Thread
How to see if nick was identified #149278 16/05/06 08:42 AM
Joined: May 2006
Posts: 2
D
dydy_bejau Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: May 2006
Posts: 2
Searched for it but couldn't find anything (even couldn't find numeric answer) so realy sorry if it was somewhere

Now the problem
I've made trivia Bot and i need for some commands to check if user has identified for his nickname, so /whois is not the best way i think

now i've done so that bot performs /whois and saves status window buffer 10 lines and then it checks if there's a line ' $nick has identified for that nickname ' but it takes a time frown

so are there any suggestions?
thanks

Re: How to see if nick was identified #149279 16/05/06 09:40 AM
Joined: Jan 2003
Posts: 53
Z
Zonk Offline
Babel fish
Offline
Babel fish
Z
Joined: Jan 2003
Posts: 53
well, dunno what network you're on, but on Quakenet e.g. you can /who that nick with some special parameters and you only get the line if the nick has been identified...

any way, you'll have to work with raw events (you could also do that with whois)

Quakenet--> /who <nick> n%na --> raw 354 (iirc) will return 0 for not being authed or the auth nick...

maybe you can transfer this to your network...

Re: How to see if nick was identified #149280 16/05/06 09:44 AM
Joined: Jan 2006
Posts: 468
symphony Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2006
Posts: 468
Performing a whois is the only method you can know if a nickname is identified or not. On some networks IRCoperators can see usermodes for other nicknames via a command or so, there the identification usermode appears "Usually +r".

However you could make an alias that halts raw numerics and only allow one numeric 307 to echo Here. .

I wish this could help.

Re: How to see if nick was identified #149281 16/05/06 10:06 AM
Joined: May 2006
Posts: 2
D
dydy_bejau Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: May 2006
Posts: 2
thanx Symphony wink
raw 307 is exactly what i needed smile
but why it's not in rfc1459.txt ?
thanx again wink

Re: How to see if nick was identified #149282 16/05/06 10:17 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Nick/username registration isn't part of the IRC specification.