All pastes #582631 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-22 00:55 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) isreg $active) {
        mode $chan -v$nick($active,%y)
      }
    }
    unset %x
    unset %y
  }
}