All pastes #493540 Raw Edit

Mute/unmute script

public text v1 · immutable
·published 2007-05-17 20:43 UTC
rendered paste body
on *:text:!mute*:#: {
  set %reason $3-
  if (%reason == $null) { halt }
  elseif ($nick isop $chan || $nick ishop $chan) {
    mode $chan +b ~q: $+ $address($2,2)
    inc %muted
    msg $chan $nick was muted! reason: %reason
    Notice $nick You have been muted by $nick! reason: %reason
    timer 1 $calc($2 * 60) mode $chan -b ~q: $+ $address($2,2)
  }
}
on *:text:!unmute*:#: {
  mode $chan -b ~q: $+ $address($2,2)
  notice $nick You have been unmuted by $nick $+ !
}