Anonymous
public text v1 · immutableon *:JOIN:#:{
if ($+(%,voice,$chan) == on) && ($me isop $chan) || ($me ishop $chan) { mode $chan +v $nick }
else { halt }
}
on *:TEXT:!setvoice on:#: {
if ($nick isop $chan) || ($me ishop $chan) { set $+(%,voice,$chan) on | notice $nick 4AUTO VOICE2 has been turned 4on2. }
else { halt }
}
}
on *:TEXT:!setvoice off:#: {
if ($nick isop $chan) || ($me ishop $chan) { set $+(%,voice,$chan) off | notice $nick 4AUTO VOICE2 has been turned 4off2. }
else { halt }
}
}