mIRC Home    About    Download    Register    News    Help

Print Thread
how to show idle time of nick when 'whois' them #232018 14/05/11 04:25 AM
Joined: May 2011
Posts: 1
S
supa1 Offline OP
Mostly harmless
OP Offline
Mostly harmless
S
Joined: May 2011
Posts: 1
as subject
TIA

Re: how to show idle time of nick when 'whois' them [Re: supa1] #232020 14/05/11 08:23 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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)

Last edited by Tomao; 14/05/11 08:27 AM.
Re: how to show idle time of nick when 'whois' them [Re: supa1] #232022 14/05/11 12:10 PM
Joined: Feb 2009
Posts: 20
W
WKN Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Feb 2009
Posts: 20
Also you often have to use the command in the form:

/whois <Nick> <SameNick>

to get the idle information on some servers.


BR
WKN

Re: how to show idle time of nick when 'whois' them [Re: WKN] #232027 14/05/11 08:43 PM
Joined: Jul 2006
Posts: 3,582
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,582
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.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: how to show idle time of nick when 'whois' them [Re: Wims] #232030 14/05/11 10:48 PM
Joined: Apr 2010
Posts: 923
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 923
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)

Last edited by FroggieDaFrog; 14/05/11 10:58 PM.

I am SReject
My Stuff
Re: how to show idle time of nick when 'whois' them [Re: FroggieDaFrog] #232033 14/05/11 11:56 PM
Joined: Jul 2006
Posts: 3,582
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,582
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.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: how to show idle time of nick when 'whois' them [Re: WKN] #232036 15/05/11 06:48 AM
Joined: Mar 2004
Posts: 526
HorseC Offline
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
'/whois <Nick> <SameNick>'
while this is true on DALnet and several other networks, it is NOT standard protocol on all networks.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Re: how to show idle time of nick when 'whois' them [Re: Tomao] #232091 18/05/11 08:43 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }