on *:TEXT:!autovoice*:#: { if (!$2) { if (%autovoice. [ $+ [ $chan ] ] == on) { notice $nick 5Autovoice is on in $+($chan,.) } else { notice $nick 5Autovoice is off in $+($chan,.) } } else { if ($nick !isop $chan) { notice $nick 5You must be an op to change autovoice settings. } else { if ($2 == on) { set %autovoice. $+ $chan on msg $chan 5[ Auto Voice is now 10ON 5for $chan ] } elseif ($2 == off) { set %autovoice. $+ $chan off msg $chan 5[ Auto Voice is now 10OFF 5for $chan ] } else { notice $nick Unknown command. } } } } on *:JOIN:#: { if (%autovoice. [ $+ [ $chan ] ] == on) { mode $chan +v $nick } }