All pastes #632828 Raw Edit

Miscellany

public text v1 · immutable
#632828 ·published 2007-07-25 06:39 UTC
rendered paste body
on *:TEXT:!av*:#:{ 
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($2 == on) {
      set %autovoice on
      msg $chan Autovoice is now on
    }
    elseif ($2 == off) {
      set %autovoice off
      msg $chan Autovoice is now off
    }
  }
}
on *:JOIN:#:{ if ($chan != #mirc) {
    if (%autovoice == on) {
      set %nicky $nick
      timer3 1 4 /mode $chan +v %nicky
      timer4 1 4 unset %nicky
      timer 1 2 goto two
    }
    :two
    if ($nick ishop $chan) || ($nick isop $chan) {
      /timer3 off
      halt 
    }