awesome mass op script, by Flaze, Works by typing /mass, e.g.
/mass +v
/mass +h
so on and so forth
warning, you must be at least halfop to use mass commands
Edit: Code now works if you're a channel operator, You may edit it if you use a server where there are half operators.
alias mass {
if ($me isop $chan) {
if ($1 isin +vvoice) { set %prefix $+(+,$str(v,$modespl)) | goto start }
if ($1 isin -vdevoice) { set %prefix $+(-,$str(v,$modespl)) }
if ($1 isin +oop) { set %prefix $+(+,$str(o,$modespl)) | goto start }
if ($1 isin -odeop) { set %prefix $+(-,$str(o,$modespl)) }
if ($1 isin +qowner) { set %prefix $+(+,$str(q,$modespl)) | goto start }
if ($1 isin -qdeowner) { set %prefix $+(-,$str(q,$modespl)) }
if ($1 isin +aprotect) { set %prefix $+(+,$str(a,$modespl)) | goto start }
if ($1 isin -adeprotect) { set %prefix $+(-,$str(a,$modespl)) }
if ($1 isin +hhalfop) { set %prefix $+(+,$str(h,$modespl)) | goto start }
if ($1 isin -hdehalfop) { set %prefix $+(-,$str(h,$modespl)) }
if ($1 isin +eexcept) { set %prefix $+(+,$str(e,$modespl)) | goto start }
if ($1 isin -eunexcept) { set %prefix $+(-,$str(e,$modespl)) }
if ($1 isin +Iinvitelist) { set %prefix $+(+,$str(I,$modespl)) | goto start }
if ($1 isin -Iinvitelist) { set %prefix $+(-,$str(I,$modespl)) }
if ($1 isin +bban) { set %prefix $+(+,$str(b,$modespl)) | goto start }
if ($1 isin -bunban) { set %prefix $+(-,$str(b,$modespl)) }
:start
set %massing $nick($chan,0)
while (%massing) {
if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
dec %massing
}
mode $chan %prefix %mass1 | unset %mass1
}
else { echo -a *** Error: You do not have operator status on $chan *** }
}
Good, but I think something might be wrong with it..
Error you\'re not an halfop on #blah
Error you\'re not an halfop on #blah
-(15:44)- !down
-(15:44)- AnimeBot sets mode: -q Sora-
-(15:44)- !halfop
-(15:44)- AnimeBot sets mode: +h Sora-
-(15:44)- Sora- sets mode: +vvv EagleMage Itachi AnimeBot
-(15:44)- !up
-(15:44)- AnimeBot sets mode: +q Sora-
This code is MUCH cleaner.
http://www.hawkee.com/snippet/696/
Nice job, anyway.