Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias -l exceptions { return nick1 nick2 nick3 } ; Add nicks here (separated by space)
- ON ME:*:JOIN:#dardania: { .timer[CHECK_ $+ $chan $+ _IDLE] 0 60 check_idle $chan 600 }
- alias check_idle {
- ; /check_idle <#Channel> <Seconds>
- if (!$1) || (!$2) || (!$isnum($2)) || ($me !ison $1) || ($me !isop $1) { return }
- var %t = $nick($1,0,o)
- if (!%t) || (%t == 1) { return }
- var %i = 1
- while (%i <= %t) {
- var %n = $nick($1,%i,o)
- var %e = $nick($1,%i,o).idle
- if (%n ison $1) && (%n !== $me) && (!$istok($exceptions,%n,32)) && (%e) && (%e > $2) { var %k = $addtok(%k,%n,32) }
- inc %i
- }
- if (%k) { mode $1 $+(-,$str(o,$numtok(%k,32))) %k }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement