A similar approach to Yoinx's mass mode code but doesn't have to select nicks. Syntax: /mass [+/-]o|v|h (e.g. /mass +v). You can also leave the "+" (e.g. /mass h).
alias mass {
if ( $regex($1,/^[\+-]?[ohv]$/) ) && ( $me isop # ) {
var %a, %c = $+($left($1,1),$str($right($1,1),$modespl))
var %d = $iif( $left($1,1) === -, $right($1,1), $iif($right($1,1) == v,a,$+(a,$chr(44),o)) ), %b = $nick(#,0,%d)
while %b {
if ( $nick(#,%b,%d) != $me) {
%a = %a $v1
if ($modespl == $numtok(%a,32)) {
mode # %c %a
%a = ""
}
}
dec %b
}
if (%a) mode # %c %a
}
}
i loaded it into my remotes section under a new file typed in all 3 commands
/mass + - o
/mass + - v
/mass + - h and thay worked for me just fine nice snippets xDaeMoN
(11:06:23) ::: /MSG ChanServ@services.dal.net: OP #einstein RoninWarrior
(11:06:25) ::: (ChanServ) Set Mode (+o RoninWarrior)
(11:07:05) ::: (RoninWarrior) Set Mode (+v Fwinky)
(11:07:27) ::: (RoninWarrior) Set Mode (+v Fwinky)
(11:07:34) ::: (RoninWarrior) Set Mode (+o Fwinky)
(11:07:42) ::: (RoninWarrior) Set Mode (-o Fwinky)
(11:07:47) ::: (RoninWarrior) Set Mode (-v Fwinky)
(11:07:54) ::: (RoninWarrior) Set Mode (+v Fwinky)
(11:07:57) ::: (RoninWarrior) Set Mode (+o Fwinky)