mIRC Home    About    Download    Register    News    Help

Print Thread
#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?

Joined: Jan 2003
Posts: 3,012
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
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.

Joined: Jan 2003
Posts: 3,012
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
Joined: Jan 2004
Posts: 3
Z
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

Joined: Jan 2003
Posts: 3,012
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
Joined: Jan 2003
Posts: 1,063
D
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!

Link Copied to Clipboard