mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2011
Posts: 1
S
supa1 Offline OP
Mostly harmless
OP Offline
Mostly harmless
S
Joined: May 2011
Posts: 1
as subject
TIA

Joined: Jul 2007
Posts: 1,129
T
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.
Joined: Feb 2009
Posts: 25
W
WKN Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Feb 2009
Posts: 25
Also you often have to use the command in the form:

/whois <Nick> <SameNick>

to get the idle information on some servers.


BR
WKN

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
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
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Mar 2004
Posts: 526
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!
Joined: Aug 2005
Posts: 1,052
L
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* }

Link Copied to Clipboard