All pastes #930888 Raw Edit

Something

public text v1 · immutable
·published 2008-03-06 21:28 UTC
rendered paste body
on *:text:!av*:#DG:{
if ($nick isop $chan) || ($nick ishop $chan) && ($2 != $null) {
notice $nick The Hostmask: $address($2,2) is added to the autovoice list.
var %av [ $+ [ $address($2,2) ] ] on
mode $chan +v $2
}
else {
notice $nick Sorry, you need Halfop+ to do this.
}
}
on *:text:!delav*:#DG:{
if ($nick isop $chan) || ($nick ishop $chan) && ($2 != $null) {
notice $nick The Hostmask: $address($2,2) is deleted from the autovoice list.
unset %av [ $+ [ $address($2,2) ] ]
mode $chan -v $2
}
else {
notice $nick Sorry, you need Halfop+ to do this.
}
}
on *:JOIN:#Dg: {
  if (%av [ $+ [ $address($nick,2) ] ] == on) {
 mode $chan +v $nick
}
}