All pastes #608917 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-08 15:51 UTC
rendered paste body
on *: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 }
  }
}