on *:TEXT:!autovoice *:#thepc: { if ($nick isop $chan) || ($nick ishop $chan) { if ($2 == on) { set %thepc.av ON notice $nick Autovoice for $chan is now disabled. } else { if ($2 == off) { set %thepc.av OFF notice $nick Autovoice for $chan is now disabled. } } } }