Advertisement
illpastethat

alias checkidle wickednights

Jun 15th, 2014
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.57 KB | None | 0 0
  1. on me:*:join:#:.timercheckidle 0 180 checkidle ;when I join, start a timer to run checkidle every three minutes
  2. alias -l checkidle {
  3.   var %x $nick($chan,0,v) ;%x is the number of voiced people in the chan
  4.   while (%x) { ;do the following code while %x is greater than 0
  5.     if ($nick($chan,%x,r).idle >= 3600) { ;check if the nick's hasn't been idle for an hour
  6.       if ($me isop) mode # -v $nick($chan,%x,r) ;if it has, devoice it.
  7.     }
  8.     dec %x ;decrease %x by 1 to go to the next person in the list, also will eventually be 0 at which point script will stop.
  9.   }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement