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.
}
}