gooshie commented on a Page, Mass Commands  -  Sep 19, 2009

Eliminated set %variables, goto jump, and one mode command line

alias mass {
  if ($me isop #) {
    var %i 1,%p,%m $modespl,%mass
    if ($1 isin +vvoice) { %p = $+(+,$str(v,%m)) }
    elseif ($1 isin -vdevoice) { %p = $+(-,$str(v,%m)) }
    elseif ($1 isin +oop) { %p = $+(+,$str(o,%m)) }
    elseif ($1 isin -odeop) { %p = $+(-,$str(o,%m)) }
    while $nick(#,%i) {
      if ($v1 != $me) { %mass = %mass $v1 }
      if ($gettok(%mass,0,32) = %m) || ($nick(#,0) = %i) {
        mode # %p %mass
        %mass = ""
      }
      inc %i
    }
  }
  else { echo -a *** Error you're not an op on $chan *** }
}
 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.