Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on me:*:join:#:.timercheckidle 0 180 checkidle ;when I join, start a timer to run checkidle every three minutes
- alias -l checkidle {
- var %x $nick($chan,0,v) ;%x is the number of voiced people in the chan
- while (%x) { ;do the following code while %x is greater than 0
- if ($nick($chan,%x,r).idle >= 3600) { ;check if the nick's hasn't been idle for an hour
- if ($me isop) mode # -v $nick($chan,%x,r) ;if it has, devoice it.
- }
- 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.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement