mIRC Home    About    Download    Register    News    Help

Print Thread
Check If Nickname is Exists #68120 16/01/04 05:13 AM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
Is there any identifier that will check if a certain nickname is currently online the server?

Re: Check If Nickname is Exists #68121 16/01/04 06:39 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
/help /notify
/help on notify

Add them to your notify list. When they join and part the on notify will trigger.


-KingTomato
Re: Check If Nickname is Exists #68122 16/01/04 06:12 PM
Joined: Oct 2003
Posts: 64
E
Exlax Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Oct 2003
Posts: 64
I dont really want to know when somebody joins or parts. I just want a "right-then-and-there" answer of whether any nickname exists.

Re: Check If Nickname is Exists #68123 16/01/04 06:36 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Some networks support /ison, which will return in a raw code that a user is online. For example:

/ison $me

<- :irc.dynamix.com 303 KingTomato :YourName

Versus

/ison SomeBogusName

<- :irc.dynamix.com 303 KingTomato :

Which means no such user.



-KingTomato
Re: Check If Nickname is Exists #68124 16/01/04 09:36 PM
Joined: Jan 2004
Posts: 3
Z
Zachu Offline
Self-satisified door
Offline
Self-satisified door
Z
Joined: Jan 2004
Posts: 3
Damnit you do it in hard way
You can whois some guy and then with raw events, check if whois returns something

Re: Check If Nickname is Exists #68125 16/01/04 10:05 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Hardway? I'd rather have one raw return to me ona "is online" test then 3-8. Additionally, a whois would echo to the user of the script, and to stop from doing so would involve several raw haltdef. In this case, only one (two for a fail) are neccisery, as well as less bandwidth is taken.


-KingTomato
Re: Check If Nickname is Exists #68126 18/01/04 11:57 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
indeed, besides, reply time of ison is much faster then whois! or use /userhost for that and wait for that reply...


If it ain't broken, don't fix it!