napa182 commented on a Page, Mass Modes  -  Mar 14, 2008

napa %a is set to 0 so while will not work. think
um yes you can use a while loop. this should do the same thing as ur\'s.

alias mass {
  if ($me isop #) && ($regex($1-,/^[+-][ovb]$/)) {
    var %a = $nick($chan,0), %o = 1
    while (%o <= %a) {
      var %m $addtok(%m,$nick($chan,%o),32), %m $remtok(%m,$me,32)
      inc %o
    }
    mode $chan $left($1,1) $+ $str($right($1,1),%o) %m
  }
}
 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.