What this script does is set modes + or -vhoaq on everyone on the channel. The trigger is /mass [+-] [vhoaq], eg /mass +v or /mass -o. Enjoy!
alias mass {
if ($regex($1,/^([/+-][vhoaq])$/S) && !$2) {
var %a 1
while (%a <= $nick(#,0)) {
set -l %b %b $nick(#,%a)
inc %a
}
mode # $left($1,1) $+ $str($mid($1,2,1),$nick(#,0)) %b
}
}
Since I have mIRC with me at the moment, I'll show you what I meant:
alias mass {
if ($regex($1,/^([+-])([vhoaq])$/S)) {
var %1 = $regml(1), %2 = $regml(2), %- = $nick(#,0)
while (%-) {
var %m = %m $iif($nick(#,%-) != $me,$v1)
if ($numtok(%m,32) == $modespl) {
mode # $+(%1,$str(%2,$v1))
}
dec %-
}
if (%m) mode # $+(%1,$str(%2,$numtok(%m,32))) %m
}
}
This is for demonstration purposes only.