All pastes #107216 Raw Edit

Unnamed

public text v1 · immutable
#107216 ·published 2006-07-30 22:11 UTC
rendered paste body
on *:text:!mute *:#:{
  if ($nick isop $chan) {
    if ($2 != $null) {
      /mode $chan -vho $nick
      /mode $chan +b ~q: $+ $address($2,2)
    }
    else { /notice $nick No user specified }
  }
  elseif ($nick ishop $chan) {
    if ($2 != $null) {
      if ($2 !isop $chan) {
        /mode $chan -v $nick
        /mode $chan +b ~q: $+ $address($2,2)
      }
      else { /notice $nick You can't mute an operator! }
    }
    else { /notice $nick No user specified }
} }