All pastes #494642 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-18 10:53 UTC
rendered paste body
on *:text:!mute*:#: {
  if ($nick isop $chan || $nick ishop $chan) { 
    else { HALT }
    set %reason $4-
    if (%reason == $null) { notice $nick the command is !mute nickname time  }
    if ($2 isop $chan || $2 ishop $chan) { HALT }
    mode $chan +b ~q: $+ $address($2,2)
    if ($2 isvoice $chan) { mode $chan -v $2 }
    inc %muted
    msg $chan $2 was muted! reason: %reason
    Notice $2 You have been muted by $nick $+ ! reason: %reason
    timer 1 $calc($3 * 60) mode $chan -b ~q: $+ $address($2,2)
  timer 1 $calc($3 * 60) mode $chan +v $2 }

}
}
on *:text:!unmute*:#: {
if ($nick isop $chan || $nick ishop $chan) {
  mode $chan -b ~q: $+ $address($2,2)
notice $nick You have been unmuted by $nick $+ ! }
}