Advertisement
Seb

/mass +/- o,v,b,a,h

Seb
Apr 15th, 2011
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.48 KB | None | 0 0
  1. alias mass {
  2.   if ( $regex($1,/^[\+-]?[ohbav]$/) ) && ( $me isop # ) {
  3.     var %a, %c = $+($left($1,1),$str($right($1,1),$modespl))
  4.     var %d = $iif( $left($1,1) === -, $right($1,1), $iif($right($1,1) == v,a,$+(a,$chr(44),o)) ), %b = $nick(#,0,%d)
  5.     while %b {
  6.       if ( $nick(#,%b,%d) != $me) {
  7.         %a = %a $v1
  8.         if ($modespl == $numtok(%a,32)) {
  9.           mode # %c %a
  10.           %a = ""
  11.         }
  12.       }
  13.       dec %b
  14.     }
  15.     if (%a) mode # %c %a
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement