on *:text:!av *:#: {
/set %blue $2
if (($nick isop $chan) || ($nick ishop $chan)) {
/var %x = 2
while (%x <= $calc($numtok($2-,32)+1)) {
if ($eval($+($,%x),2) ishop $chan) || ($eval($+($,%x),2) isop $chan) { /notice $nick you can't auto voice $eval($+($,%x),2) because he is allready halfop/op }
else {
/cs access $chan add $eval($+($,%x),2) 3
/mode $chan +v $eval($+($,%x),2)
.notice $nick $eval($+($,%x),2) has been granted auto voice
.notice $eval($+($,%x),2) You have been granted auto voice
}
inc %x
}
}
}
on *:text:!dav *:#: {
if (($nick isop $chan) || ($nick ishop $chan)) {
/var %x = 2
while (%x <= $calc($numtok($2-,32)+1)) {
if ($eval($+($,%x),2) ishop $chan) || ($eval($+($,%x),2) isop $chan) { /notice $nick you can't take $eval($+($,%x),2) his auto voice because he is halfop/op }
else {
/cs access $chan del $eval($+($,%x),2)
/mode $chan -v $eval($+($,%x),2)
.notice $nick $eval($+($,%x),2) his auto voice has been deleted
.notice $eval($+($,%x),2) Your auto voice has been deleted
}
inc %x
}
}
}