Mass modes

By tai on Oct 10, 2007

; 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
    }
  }
}

Comments

Sign in to comment.
Jethro   -  Oct 18, 2009

Don't rip. =/ what an overstatement. lol

 Respond  
x1L22   -  Oct 18, 2009

+a +q ?

 Respond  
xplo   -  Mar 07, 2008

if you\'r on undernet and you need to test a script, for flood or anything let me know :p i guess i could help :) -> Nick XploreR

 Respond  
xplo   -  Mar 07, 2008

[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

 Respond  
RubixCube   -  Oct 11, 2007

Seems okay, haven\'t really tested it though.

 Respond  
tai   -  Oct 11, 2007

That doesn\'t really mean I have the users either. I will try and browse for a server for a really small $modespl.

 Respond  
guest598594   -  Oct 11, 2007

thats not a reason not to test it,

/server -m mesa.az.us.undernet.org

u can just try another server...

 Respond  
tai   -  Oct 11, 2007

now* instead of not

 Respond  
tai   -  Oct 11, 2007

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.

 Respond  
guest598594   -  Oct 11, 2007

u can do \"on @*:\" rather than $me isop $chan

 Respond  
tai   -  Oct 11, 2007

o_O I have never heard of $modespl. =o I\'ll update this snippet when I get onto a computer with my mIRC. Thanks guys.

 Respond  
Lindrian   -  Oct 11, 2007

$modespl is a huge factor, on undernet $modespl is 6, ur only going to set modes on 6 ppl?
on rizon its 4.. might aswell do it manually lol

 Respond  
FRISH   -  Oct 11, 2007

doesnt work if there are more people in the channel than the $modespl limit ;), good though

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.