All pastes #276023 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-11 23:24 UTC
rendered paste body
on *:text:!voice on:#:{
  if (($nick isop $chan) || ($nick ishop $chan)) {
    set %autovoice. $+ $chan
/notice $chan Auto-voice has been enabled by $nick $+ .
  }
}
on *:text:!voice off:#:{
  if (($nick isop $chan) || ($nick ishop $chan)) {
    unset %autovoice. $+ $chan
/notice $chan Auto-voice has been disabled by $nick $+ .
  }
}

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