mIRC Home    About    Download    Register    News    Help

Print Thread
On /WHOIS I want it to show idle time #233200 18/07/11 07:04 PM
Joined: Jul 2011
Posts: 5
T
temprand0m Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2011
Posts: 5
When I /WHOIS myself this will show up:

-
test123 is ~test@hostname.com * test
test123 on #test
test123 using EFnet
test123 has been idle 1hr 15mins 6secs, signed on Mon Jul 18 07:34:42
test123 End of /WHOIS list.
-

When I whois other users idle time will not show up. However if Im using NNScript and NBS-irc (addons for mIRC) idle time will show up when I /whois other users.

It must mean that it is possible to make idle time show up when I /whois users without any addons? Or is there a script on how to make idle time show up on whois?

Last edited by temprand0m; 18/07/11 10:06 PM.
Re: On /WHOIS I want it to show idle time [Re: temprand0m] #233201 18/07/11 07:17 PM
Joined: Dec 2002
Posts: 2,013
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,013
Try /whois <nick> <nick>

/whois test123 test123

Re: On /WHOIS I want it to show idle time [Re: RoCk] #233202 18/07/11 09:03 PM
Joined: Nov 2004
Posts: 802
Jigsy Offline
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 802
Take into consideration that some IRCds have usermodes which hide idle time from other users.


What do you do at the end of the world? Are you busy? Will you save us?
Re: On /WHOIS I want it to show idle time [Re: temprand0m] #233257 26/07/11 07:26 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Idle time is normally not propagated across the network. If you /whois someone who is using the same server as you are, idle time will be shown. If the target is using a different server on the same network, you will not get their idle time. I believe this is done to save bandwidth, which may not be as relevant today as it was in 1980s when IRC was invented.

The protocol is very efficient and servers operate on a need-to-know basis. Imagine a network of servers A<->B<->C. Now if user on server A sends a private message to user on server B, server C won't know about it at all. Since WHOIS is requested locally, users on server C would get incorrect idle time.

One way to get user's full WHOIS info is to send the request directly to remote server. You can use /whois <nick> <nick> or /whois <server> <nick> to do this. The only drawback might be slightly slower response on laggy networks.

Last edited by MonoSex; 27/07/11 01:17 AM.
Re: On /WHOIS I want it to show idle time [Re: MonoSex] #239622 11/11/12 02:23 AM
Joined: Nov 2012
Posts: 1
G
ginshi13 Offline
Mostly harmless
Offline
Mostly harmless
G
Joined: Nov 2012
Posts: 1
Thanks, was having this issue too, now to make a script of this...

Re: On /WHOIS I want it to show idle time [Re: ginshi13] #239625 11/11/12 03:35 AM
Joined: Feb 2011
Posts: 319
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 319
Tools -> Script Editor -> Popups Tab -> View -> Nick list

Change:
Code:
Info:/uwho $1
Whois:/whois $$1

Into:
Code:
Info:/uwho $1 $1
Whois:/whois $$1 $$1



Tools -> Options -> Mouse ->


Change:
Code:
/whois $$1

Into:
Code:
/whois $$1 $$1



This will allow you to get the idle time of people on different servers within the network (pending the IRCd or some usermode is not hiding it).

Last edited by KindOne; 11/11/12 03:47 AM. Reason: Added Mouse...

irc.swiftirc.net #msl (mIRC Scripting Language)
Re: On /WHOIS I want it to show idle time [Re: KindOne] #256331 11/01/16 08:30 AM
Joined: Jan 2016
Posts: 1
T
thearcoN Offline
Mostly harmless
Offline
Mostly harmless
T
Joined: Jan 2016
Posts: 1
Thank you very much for your post. It helped me out a lot.

Re: On /WHOIS I want it to show idle time [Re: RoCk] #258380 29/06/16 09:41 AM
Joined: Sep 2015
Posts: 22
M
M_A_ Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Sep 2015
Posts: 22
Originally Posted By: RoCk
Try /whois <nick> <nick>

/whois test123 test123


You are a crack.
Thank you very much.

Re: On /WHOIS I want it to show idle time [Re: RoCk] #258394 30/06/16 06:47 AM
Joined: Sep 2015
Posts: 22
M
M_A_ Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Sep 2015
Posts: 22
The only noticeable problem is the reception of "No Such Server" message in "No Such Nickname" situations.

I am not sure about how to work it around.
A possible one, could be logically interpreting a raw 402 as a former RAW 401 ... or getting back to the single argument whois ... which would mean losing idle info .. which is not acceptable

I hope this helps someone

Last edited by M_A_; 30/06/16 07:31 AM.
Re: On /WHOIS I want it to show idle time [Re: M_A_] #258396 30/06/16 07:31 AM
Joined: Feb 2011
Posts: 319
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 319
Some IRCd's give different responses on a remote whois if the nick does not exist.


UnrealIRCd:

whois r4
:irc2.unrealircd.org 401 KindOne r4 :No such nick/channel
:irc2.unrealircd.org 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:irc2.unrealircd.org 402 KindOne r4 :No such server



Heavily? modified UnrealIRCd 3.2.6:

whois r4
:*.SwiftIRC.net 401 KindOne r4 :No such nick/channel
whois r4 r4
:*.SwiftIRC.net 401 KindOne r4 :No such nick/channel



InspIRCd:

whois r4
:bender.chatspike.net 401 KindOne r4 :No such nick/channel
:bender.chatspike.net 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:bender.chatspike.net 401 KindOne r4 :No such nick/channel
:bender.chatspike.net 318 KindOne r4 :End of /WHOIS list.



ircd-ratbox: (EFNet)

whois r4
:irc.servercentral.net 401 KindOne r4 :No such nick/channel
:irc.servercentral.net 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:irc.servercentral.net 402 KindOne r4 :No such server



charybdis: (fork of ircd-rabox)

whois r4
:Caprica.StaticBox.net 401 KindOne r4 :No such nick/channel
:Caprica.StaticBox.net 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:Caprica.StaticBox.net 402 KindOne r4 :No such server



ircd-seven: (fork of charybdis)

whois r4
:card.freenode.net 401 KindOne r4 :No such nick/channel
:card.freenode.net 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:card.freenode.net 402 KindOne r4 :No such server



bahamut:

whois r4
:laud.ix.us.dal.net 401 KindOne r4 :No such nick/channel
:laud.ix.us.dal.net 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:laud.ix.us.dal.net 402 KindOne r4 :No such server



u2.10.12.10+snircd(1.3.4a):

whois r4
:azubu.il.us.quakenet.org 401 KindOne r4 :No such nick
:azubu.il.us.quakenet.org 318 KindOne r4 :End of /WHOIS list.
whois r4 r4
:azubu.il.us.quakenet.org 401 KindOne r4 :No such nick
:azubu.il.us.quakenet.org 318 KindOne r4 :End of /WHOIS list.


irc.swiftirc.net #msl (mIRC Scripting Language)