Originally Posted By: FeelGood
I need help creating a !mute command so all ops can mute on my channel through me. Syntax would be somethign like "!mute [nick] [reason]". I don't care about a timer I can add that myself. Also "!unmute [nick]"
Code:
on @$*:text:/^!(un)?(mute)\b/Si:#:{
  if ($nick isop #) { $iif($regml(1) == un,unmute,mute) $$2 $3- }
}
alias mute {
  mode # +b ~q: $+ $address($$1,5)
  mode # -aohv $str($$1 $chr(32),4)
  .notice $$1 I just muted you for reason: $iif($2,$2-,No reason.)
}
alias unmute {
  mode # -b ~q: $+ $address($$1,5)
  mode # +v $$1
  .notice $$1 You have been unmuted... That was your only warning.. Do not annoy me again or you will be banned.
}