Mine
public text v1 · immutableon *:text:*:#: {
if (!$2) halt
if ($nick isop $chan) || ($nick ishop $chan) {
if (($regex($1,/^[!@]voice/Si)) { mode $chan +v $2 }
if (($regex($1,/^[!@]devoice/Si)) { mode $chan -v $2 }
}
if ($nick isop $chan) {
if (($regex($1,/^[!@]h(op|alfop)/Si)) { mode $chan +h $2 }
if (($regex($1,/^[!@]deh(op|alfop)/Si)) { mode $chan -h $2 }
if (($regex($1,/^[!@]op/Si)) { mode $chan +o $2 }
if (($regex($1,/^[!@]deop/Si)) { mode $chan -o $2 }
}
}