on *:TEXT:!av*:#:{ if ($nick isop $chan) || ($nick ishop $chan) { if ($2 == on) { set %autovoice on msg $chan Autovoice is now on } elseif ($2 == off) { set %autovoice off msg $chan Autovoice is now off } } } on *:JOIN:#:{ if ($chan != #mirc) { if (%autovoice == on) { set %nicky $nick timer3 1 4 /mode $chan +v %nicky timer4 1 4 unset %nicky timer 1 2 goto two } :two if ($nick ishop $chan) || ($nick isop $chan) { /timer3 off halt } } }