All pastes #237699 Raw Edit

Untitled

public text v1 · immutable
·published 2006-11-04 18:31 UTC
rendered paste body
on *:TEXT:*.avoice on*:#: {
  { if (($nick isop $chan || $nick ishop $chan)) {
      set %autovoice. $+ $chan on
      msg $chan [ 14[ 4Auto Voice 14] is now 14[4 On 14] for $chan ]
    }
  }
}

on *:TEXT:*.avoice off*:#: {
  { if (($nick isop $chan || $nick ishop $chan)) {
      set %autovoice. $+ $chan off
      msg $chan [ 14[ 4Auto Voice 14] is now 14[4 Off 14] for $chan ]
    }
  }
}

on *:JOIN:#: {
  { if (%autovoice. [ $+ [ $chan ] ] == on) {
      mode $chan +v $nick } else {
      { if (%autovoice. [ $+ [ $chan ] ] == off) HALT }
    }
  }
}