on $*:TEXT:/^[!@]a(uto)?v(oice)?/Si:#:{
if (!$2) || (!$3) {
msg $nick You need to specify the chan and what syntax.
msg $nick Example: !av on #ghostdm
msg $nick If you are not an Op/Halfop this will not work.
}
elseif ($nick isop $chan) || ($nick == DevilDRake) {
if ($2 == on && $3 == $chan) {
writeini AV.ini $network $chan Yes
set %autovoice on
msg $chan Autovoice is now on for $chan
}
elseif ($2 == off && $3 == $chan) {
remini AV.ini $network $chan Yes
set %autovoice off
msg $chan Autovoice is now off for $chan
}
}
}
ON *:JOIN:#:{ if ($chan != #mirc) { if ($readini(AV.ini,$network,$chan) == Yes) { if (%autovoice) { .timer 1 2 check $nick $chan } }
}
}
Alias Check { if ($1 isreg $2) { mode $2 +v $1 } }