Mass Mode

By xDaeMoN on Jan 12, 2005

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

Comments

Sign in to comment.
RoninWarrior   -  Dec 09, 2006

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)

 Respond  
Lindrian   -  Dec 08, 2006

I didnt get this to work either. Pasted in remotes, typed /Mass +v. But i get this message: (02:43:57) error: unknown command (MASS)

 Respond  
xDaeMoN   -  Oct 24, 2005

Did you type the correct syntax?

 Respond  
`Kazuma   -  Oct 24, 2005

I tried it, xDaeMoN.. It doesn\'t work. ><\'

 Respond  
xDaeMoN   -  Oct 24, 2005

Minor Update. Cleaned the code again.

 Respond  
xDaeMoN   -  Sep 09, 2005

Minor update. Cleaned the code a bit & added a check if you\'re an op.

 Respond  
xDaeMoN   -  Feb 02, 2005

*specific

 Respond  
xDaeMoN   -  Feb 02, 2005

Updated. Now uses the # of specified group/target for faster process.

 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.