All pastes #438199 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-13 14:14 UTC
rendered paste body
on *:TEXT:!avo*:#:{
  set %access $2
  cs access $chan add $2 3
  $reg($nick $2 $chan)
  unset %access
}
on ^*:NOTICE:*Channel access lists may only contain registered nicknames*:*:{
  if (($nick == chanserv) && (%access)) {
    haltdef
    set %access [ $+ [ %access ] ] nr
  }
}
alias reg {
  tokenize 32 $1-
  if (%access [ $+ [ $2 ] ] == nr) notice $1 $2 is not registered and cannot have autovoice on $3 $+ ! 
  else notice $1 Succesfully added $2 to autovoice list of $3 $+ !
  unset %access [ $+ [ $2 ] ]
}