Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

Idle System

Recommended Posts

  • Administrators
Lots of peoples asks for a code to check idle peoples, so you can check the idle of users, and the idle of users in the channel.

 

NOTICE: You wont receive any part of the /whois when using this code, for sure just for the time the code running.

 

>; Idle System; by Metal/lallouSsalias idleuser {  var %e = 1  while ($nick($chan,%e)) {    set -u160 %nick. $+ $v1 $v1    whois $v1 $v1    inc %e  }}alias idlechan {  window @Idle-Nick-Chan  aline @Idle-Nick-Chan 4This idle start counting since you joined the chan till now.  aline @Idle-Nick-Chan --------------------------------------------------------------  var %a = 1  while ($nick($chan,%a)) {    aline @Idle-Nick-Chan 4 $+ $nick($chan,%a) $+ : Hass been idle in4 $chan for:4 $gettok($calc($nick($chan,%a).idle / 60),1,46) Minutes.    inc %a  }}raw 317:*:{  haltdef  if (%nick. [ $+ [ $2 ] ] == $2) {    window @Idle-Nick    aline @Idle-Nick 4 $+ $2 $+ : Idle time:4 $duration($gettok($1-,3,32)) $+ . Signed on:4 $asctime($gettok($1-,4,32), dd/m/yy h:s:n TT) $+ .  }}raw 301:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 311:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 312:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 313:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 317:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 318:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 319:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 330:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }raw 338:*:{ if (%nick. [ $+ [ $2 ] ] == $2) { halt } }menu menubar,channel {  -  Idle System  .Users Idle: /idleuser  .-  .Chan Users Idle: /idlechan  -} 

Link to comment
Share on other sites



×
×
  • Create New...