All pastes #282094 Raw Edit

Something

public text v1 · immutable
#282094 ·published 2006-12-17 08:40 UTC
rendered paste body
on *:TEXT:!av*:#90+pc: {
  if (($nick isop $chan) || ($nick ishop $chan)) {
    if ($$2 ison $chan) avo $address($2,2) $chan $nick $2
    else .notice $nick $2 must be in the channel to be added to the AVOICE list!
  }
}
alias avo {
  writeini autovoice.ini users $1 yes
  mode $2 +v $4
  .notice $3 $4 has been added to the AVOICE list.
}
on *:JOIN:#thepc:$iif($readini(autovoice.ini,users,$address($nick,2)),mode $chan +v $nick)
on *:TEXT:!voicecheck *:#thepc:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($readini(autovoice.ini,users,$address($$2,2)) == $null) { .notice $nick $$2 not found on my AVOICE list. | halt }
    else .notice $nick $$2 found on my AVOICE list.
  } 
}