All pastes #606548 Raw Edit

Stuff

public text v1 · immutable
·published 2007-07-06 22:32 UTC
rendered paste body
on *:TEXT:!mute *:#: {
  if ($2 == $null || $3 == $null || $3 !isnum 0-65535) { halt }
  if ($nick !ishop $chan || $nick !isop $chan) { halt }
  if ($3 isnum 0-65535) {
    if ($nick isop $chan || $nick ishop $chan) {
      mode $chan +b $address($2,2)
      mode $chan -v $2
      notice $2 You have been muted for $3 minutes in channel $chan $+ .  You will be revoiced and unbanned when your mute is up.
      timer 1 $calc(60*$3) mode $chan -b $address($2,2)
      timer 1 $calc(60*$3) mode $chan +v $2
      timer 1 $calc(60*$3) notice $2 You have been unmuted in channel $chan $+ .
    }
  }
}