only way i know to get a nick's idle is with /whois nick nick (the nick twice is required if you are not on the same Server)
RAW Code Display on
311 M`` mikechat host-66-81-113-157.rev.o1.com * Dont you have homework to do?
-
M`` is
mikechat@host-66-81-113-157.rev.o1.com * Dont you have homework to do?
319 M`` @#ASCII_ART
M`` on @#ASCII_ART
312 M`` broadway.ny.us.dal.net 42nd Street
M`` using broadway.ny.us.dal.net 42nd Street
307 M`` has identified for this nick
M`` has identified for this nick
317 M`` 2665 1110725735 seconds idle, signon time
M`` has been idle 44mins 25secs, signed on Sun Mar 13 06:55:35
318 M`` End of /WHOIS list.
M`` End of /WHOIS list.
-
I used this bit to see the raw code(s)
#showraw on
raw *:*:echo 4 -a $numeric $2-
on *:mode:#: { echo -a 4 $1 8 $2 9 $3 11 $4 13 $5 4 $6 }
#showraw end
menu menubar {
Show &RAW codes:{
if ($group(#showraw) = off) { .enable #showraw }
else { .disable #showraw }
echo $color(action) -a RAW Code Display $group(#showraw)
}
}
so I see that RAW code 317 has the nick, the idle time and the signon date/time
317 M`` 2665 1110725735 seconds idle, signon time
//say $duration(2665)
gives: 44mins 25secs
if you are in a busy/large channel this could take quite a bit of runtime to check everyone, so you will want to restrict the search to just $chan(#,v) users
the RAW events have
you as the first parameter( $1)
so this should give the nick and idle time (in seconds)
raw 317:*: { echo -a $2 $3 }