SHARE
TWEET

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

Seb Apr 15th, 2011 (edited) 341 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top