All pastes #267138 Raw Edit

Mine

public text v1 · immutable
·published 2006-12-04 17:27 UTC
rendered paste body
menu * { 
  Autovoice 
  .on: set %avoice 1 | echo $color(notice) -a $+(-,$me,-) Autovoice on | msg $chan 4 Autovoice ON
  .off: unset %avoice | echo $color(notice) -a $+(-,$me,-) Autovoice off | msg $chan 4 Autovoice OFF
  .add to auto voice list:/msg chanserv access # add $$1 3 
  .del to auto voice list:/msg chanserv access # del $$1
} 
on @*:JOIN:#:{ 
  if (%avoice) { 
    .timer 1 1 /notice $nick Welcome $nick 
    .timer 1 2 /notice $nick checking status.. 
    .timer 1 5 statuscheck $nick $chan
    .timer 1 7 checkops $nick $chan

  } 
} 
alias statuscheck { 
  if ($1 isreg $2) { 
    msg $2 4 ~Autovoice on for the night~
    notice $1 Voicing Now... 
    mode $2 +v $1 
  }
}
alias checkops {
  if ($1 isop $2) || ($1 ishop $2) {
    notice $1 Voicing canceled...
  }
}