on *:TEXT:!autovoice*:#:{
if ($me != Prometheus) { halt }
if ($2 ison $chan) {
set $+(%av,.,$nick) $true
notice $nick $2 will now be autovoiced in $chan
.timerav 1 2 mode $chan +v $2
}
if ($2 == on) {
set $+(%av,.,$chan) $true
notice $nick Autovoice in $chan is now on
}
if ($2 == off) {
unset $+(%av,.,$chan)
notice $nick Autovoice in $chan is now off
}
else { halt }
}
on *:JOIN:#:{
if ( $me != Prometheus ) { halt }
if ( $+(%av,.,$chan) ) { mode $chan +v $nick }
if ( $+(%av,.,$nick) ) { mode $chan +v $nick }
else { halt }
}