All pastes #270153 Raw Edit

auto voice script

public text v1 · immutable
·published 2006-12-07 03:33 UTC
rendered paste body
on *:TEXT:!av*:#mypc: {
  if ($nick isop $chan) || ($nick ishop $chan) || ($2 ison $chan) {
    /cs access $chan add $2 3
    mode $chan +v $2
    notice $nick $2 has been added to the AVOICE list.
  }
  else {
    notice $nick $2 must be in the channel to added to the AVOICE list!
  }
}
on *:TEXT:!dav*:#mypc: {
  if ($nick isop $chan) || ($nick ishop $chan) {
    /cs access $chan del $2 
    mode $chan -v $2
    notice $nick $2 you have been deleted from the Autovoice list.
  }
  else {
    notice $nick $2 You do not have the power to delete $2 from the Autovoice list
  }
}