SHARE
TWEET

/mass alias

Seb Jun 10th, 2015 (edited) 297 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # /mass alias.
  2. # just go /mass +v or /mass -v  same goes with all the other modes, o v b h a
  3. # (some modes are network specific)
  4. ################
  5. alias mass {
  6.   if ( $regex($1,/^[\+-]?[ohbav]$/) ) && ( $me isop # ) {
  7.     var %a, %c = $+($left($1,1),$str($right($1,1),$modespl))
  8.     var %d = $iif( $left($1,1) === -, $right($1,1), $iif($right($1,1) == v,a,$+(a,$chr(44),o)) ), %b = $nick(#,0,%d)
  9.     while %b {
  10.       if ( $nick(#,%b,%d) != $me) {
  11.         %a = %a $v1
  12.         if ($modespl == $numtok(%a,32)) {
  13.           mode # %c %a
  14.           %a = ""
  15.         }
  16.       }
  17.       dec %b
  18.     }
  19.     if (%a) mode # %c %a
  20.   }
  21. }
RAW Paste Data
Top