mIRC Homepage

how to show idle time of nick when 'whois' them

Posted By: supa1

how to show idle time of nick when 'whois' them - 14/05/11 04:25 AM

as subject
TIA
Posted By: Tomao

Re: how to show idle time of nick when 'whois' them - 14/05/11 08:23 AM

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)
Posted By: WKN

Re: how to show idle time of nick when 'whois' them - 14/05/11 12:10 PM

Also you often have to use the command in the form:

/whois <Nick> <SameNick>

to get the idle information on some servers.


BR
WKN
Posted By: Wims

Re: how to show idle time of nick when 'whois' them - 14/05/11 08:43 PM

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.
Posted By: FroggieDaFrog

Re: how to show idle time of nick when 'whois' them - 14/05/11 10:48 PM

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)
Posted By: Wims

Re: how to show idle time of nick when 'whois' them - 14/05/11 11:56 PM

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.
Posted By: HorseC

Re: how to show idle time of nick when 'whois' them - 15/05/11 06:48 AM

'/whois <Nick> <SameNick>'
while this is true on DALnet and several other networks, it is NOT standard protocol on all networks.
Posted By: Lpfix5

Re: how to show idle time of nick when 'whois' them - 18/05/11 08:43 PM

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.
© 2019 mIRC Discussion Forums