An efficient, recursive mass-mode script which accumulates users as arguments to the aliases and applies the mode to them all at once, in groups of the maximum allowed by server, to prevent spamming up the channel. It also doesn't apply modes to those which already have it (i.e. Won't voice users who already have voice).
Simply paste the three aliases into the remote tab of the script editor (alt+r) and then to use it type /all .
Example:
/all +v, /all +h, /all +o, /all +e, etc. for most user modes. (Also -v,-h etc.)
Also: Can use the following aliases to make it easier for yourself:
alias vall { /all +v }
alias hall { /all +h }
alias oall { /all +o }
alias vno { /all -v }
alias hno { /all -h }
alias ono { /all -o }
PS: My first submission! Constructive criticism welcomed.
EDIT: Much improved thanks to comments. Thanks!
EDIT2: Couple of changes.
alias all { alla $1 1 0 }
alias alla {
var %m = $1, %i = $2, %n = $3, %curr_nick = $nick(#,%i)
if ( %curr_nick == $null ) {
if ( %n > 0 ) { mode $active $str(%m,%n) $4- }
}
else if ( %n == $modespl ) { mode $active $str(%m,%n) $4- | allb %m %i 0 }
else if ( %m == +v && %curr_nick isvoice # ) { inc %i | allb %m %i %n $4- }
else if ( %m == -v && %curr_nick !isvoice # ) { inc %i | allb %m %i %n $4- }
else if ( %m == +h && %curr_nick ishop # ) { inc %i | allb %m %i %n $4- }
else if ( %m == -h && %curr_nick !ishop # ) { inc %i | allb %m %i %n $4- }
else if ( %m == +o && %curr_nick isop # ) { inc %i | allb %m %i %n $4- }
else if ( %m == -o && %curr_nick !isop # ) { inc %i | allb %m %i %n $4- }
else { inc %i | inc %n | allb %m %i %n %curr_nick $4- }
}
alias allb { alla $1- }