; Mass Modes (simplified version)
; - tai
; Syntax: /mass (+/-) (mode)
; Example: /mass +o
; Do not rip
; Mass Modes (simplified version)
; - tai
; Syntax: /mass (+/-) (mode)
; Don't rip. =/
alias mass {
if ($regex($1,/^[\+-]?[ohv]$/)) {
if ($me isop $chan) {
var %x 1, %modenicks
while ($nick($chan, %x)) {
%modenicks = $addtok(%modenicks, $v1, 32)
if ($numtok(%modenicks,32) = $modespl) { mode # $+($left($1,1),$str($right($1,1),$modespl)) %modenicks | %modenicks = "" }
inc %x
}
if (%modenicks) mode # $+($left($1,1),$str($right($1,1),$numtok(%modenicks,32))) %modenicks
}
}
}
[03:59] /mass -o
[03:59] xplorer sets mode: -oooooo d--_--b Energy-Mech GpTaQbC Hawkee`Com iBeer iFart
[03:59] xplorer sets mode: -oooooo iTechHosting Marlb0r0 Masta[P] mIRCScript paxx Quote
[03:59] * xplorer sets mode: -oooo Save-IRC StatWorld VistaSystem xplorer
Works well :p tested and approved :p mouhaha
Okay guys, it should not support the $modespl. I am sorry that I cannot test this fully because my server has quite a large $modespl and I have an extremely small chan to test in. In fact, this chan only consists of me and my bot at the moment. Everything is in check so far, but I really need testing. So if you find an error, please don\'t fume. I can\'t fully test this and need your help. Thanks in advance guys. =)
updates:
%modenicks is now a local variable, and $modespl should work.