hi
i have this...
on me:*:join:#chan: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on me:*:part:#chan: {
$+(.,timerscan.idle.,$chan) off
}
alias scanidle {
var %x = 1
while ( %x <= $nick($1,0) ) {
if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) {
kick $1 $nick($1,%x,v) Anti-Idle-Kick
}
inc %x
}
}
...but @op´s and %halfop´s have been kicked... plz help
thx bodo
on me:*:join:#chan: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on me:*:part:#chan: {
$+(.,timerscan.idle.,$chan) off
}
alias scanidle {
var %x = 1
while ( %x <= $nick($1,0) ) {
if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) && ($nick($1,%x,v) !isop $chan) && ($nick($1,%x,v) !ishop $chan) {
kick $1 $nick($1,%x,v) Anti-Idle-Kick
}
inc %x
}
}
i think this should work...
do not work :-(
same effect on the first script... no errors but op´s and halfops kicked
I've slightly modified the code but it is untested. You was checking if they had operator and half operator status.
on me:*:join:#chan: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on me:*:part:#chan: {
$+(.,timerscan.idle.,$chan) off
}
alias scanidle {
var %x = 1
while ( %x <= $nick($1,0) ) {
if ( $nick($1,%x,v).idle >= %scan.idle.time ) [color:red]&&[/color] ( $nick($1,%x,v) != $me ) [color:red]||[/color] ($nick($1,%x,v) !isop $chan) [color:red]||[/color] ($nick($1,%x,v) !ishop $chan) {
kick $1 $nick($1,%x,v) Anti-Idle-Kick
}
inc %x
}
}
it works :-)
but... my bot have autovoice
service-bot give +o on join, after 10sec my bot give +v
and user have been kicked :-(
Word for the wise, don't auto op just anyone.
last question :-)
in status windows: Anti-Idle-Kick No such nick/channel
why?
if i delete Anti-Idle-Kick... instatus windows: KICK Not enough parameters
it is on *:join:#chan:{ }
no *
this works only when YOU join the channel
this works when anyone joins the channel