I'm not a scripter, but I've been reading scripts to learn a bit about them and how they work, and I have programming experience. With that said I did take this script from somewhere else, but I wish to edit it and need help.
alias mute {
mode $chan +b ~q: $+ $address($$1,5)
mode $chan -aohv $$1 $$1 $$1 $$1
.notice $$1 I just muted you for reason: $iif($2,$2-,No reason.)
}
alias unmute {
mode $chan -b ~q: $+ $address($$1,5)
mode $chan +v $$1
.notice $$1 You have been unmuted... That was your only warning.. Do not annoy me again or you will be banned.
}
The code mutes a single user on /mode. However I can only use it from my own client even when it's set in remote. 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]"