mIRC Homepage
as subject
TIA
You have to catch the info via raw 311 and 317:
Code:
raw 311:*:echo -a * $2's idle time is:
raw 317:*:echo -a $duration($3)
Also you often have to use the command in the form:

/whois <Nick> <SameNick>

to get the idle information on some servers.


BR
WKN
Hum, the real syntax is /whois [server] <nickname>[,<nickname>] where the server can be omitted, but is required if you want to get the idle time of the user since only the server which the user is connected to know about his idle time.
That said, it's true that using the nickname as the server's parameter also works, not sure why.
b/c in the RFC that describes server linking, if the whois request has a specified server then it is sent to all servers, but only the server that the specified nick is connected to is allowed to return a result smile

AFAIK, this is b/c if UserA sends a /whois request for UserB, who's 2 hops away, then:
1) UserA doesn't have to know what server UserB is using
2) it guarantees that the server UserB is on get's the request


To clarify things when a server is specifed: the whois request is sent through that chain of linked servers until the server userB is on replies(at which that server doesn't continue sending to it's links)
You basically repeated what I said, but you completely missed my question confused
Also, 1) & 2) are wrong, you do have the server's name in the whois's answer and the request is only sent to the server if one is specified, all servers already have all informations about an user but his idle time.
'/whois <Nick> <SameNick>'
while this is true on DALnet and several other networks, it is NOT standard protocol on all networks.
It's funny how people write the scripts to the users without given them knowledge how they got to the RAW conclusion.

In the future, if you want to grasp any type of information but fear there isn't a programmed event, type /debug @window which will create a new window for debugging of course.

In this window you'll find you'll see all "Raw" messages pass through from a simple chat, to whois, to notice events etc.. they allow you to script around every other event.
© mIRC Discussion Forums