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.
writeini av.ini AV $address($2,2) av
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.
remini av.ini AV $address($2,2)
mode $chan -v $2
}
else {
notice $nick Sorry, you need Halfop+ to do this.
}
}
on *:JOIN:#Dg: {
if ($readini(av.ini,AV,$address($nick,2))) mode $chan +v $nick
}