All pastes #582754 Raw Edit

Something

public text v1 · immutable
·published 2007-06-22 02:13 UTC
rendered paste body
alias voiceall {
  if (($me isop $active) || ($me ishop $active)) {
    set %x $nick($active,0)
    while (%x > 0) {
      dec %x      
      inc %y
      if ($nick($active,%y) isreg $active) {
        mode $chan +v $nick($active,%y)
      }
    }
    unset %x
    unset %y
  }
}

alias devoiceall {
  if (($me isop $active) || ($me ishop $active)) {
    set %x $nick($active,0)
    while (%x > 0) {
      dec %x
      inc %y
      if ($nick($active,%y) isvoice $active) {
        mode $chan -v $nick($active,%y)
      }
    }
    unset %x
    unset %y
  }
}