$nick(%chan,%a,r) = not voiced regular so
devoiceing them would do nothing
and also
$chan
there was no $chan identifier
try sorting that out and it might work,
alias CheckIdlers {
var %chan = #channel
if ($me !isop %chan) {
echo -a You are not oped on %chan
return
}
var %a = $nick(%chan,0,v)
while (%a) {
if ($nick(%chan,%a,v).idle > 100) {
msg chanserv devoice %chan $nick(%chan,%a,v) Idling is not allowed!
}
dec %a
}
}try that
oh,
you might want to put a timer on the /msg chanserv
because if you are devoiceing alot of users in one
then you might get flooded off the server