alias check.idle {
; Syntax: /check.idle <channel>
; Example: /check.idle #mIRC
if ($me !isop $1) return
var %i = 1
while ($nick($1,%i,o) != $null) {
if (($v1 != $me) && ($nick(#,$nick($1,%i,o)).idle > 18000)) var %r = %r $nick($1,%i,o)
inc %i
}
mdeop $1 %r
}
alias mdeop {
; Syntax: /mdeop <channel> <nicks>
; Example: /mdeop #mIRC nick1 nick2 nick3
if ($me !isop $1) return
var %i = 1
while ($gettok($2-,%i,32) != $null) {
var %v = %v $v1
if ($numtok(%v,32) == $modespl) {
mode $1 $+(-,$str(o,$v1)) %v
var %v
}
inc %i
}
if (%v != $null) mode $1 $+(-,$str(o,$numtok(%v,32))) %v
}
Last edited by mIRCManiac; 03/06/05 07:03 PM.