Basically this script de-access's the person in the channel and places a +b ~q ban on them.
/mute Will mute the annoying chatter for what ever reason you put.
/unmute will unmute the chatter
When you mute them it sends them a notice telling them they were muted and the reason they were muted. And when you unmute them it tells them they were unmuted and gives them a warning that they will be banned if annoyance continues.
It's my first script, just place in a remote and enjoy.
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.
}
Code make it one alias as shown below. Just a thought.
Usage is /mute +/- nick reason
alias mute {
mode $chan $iif($1 == +, +b ~q: $+ $address($$2,5), -b ~q: $+ $address($$2,5) )
mode $chan $iif($1 == +, -aohv $str($$2 $+ $chr(32),4) , +v $2 )
notice $$2 I just $iif($1 == +, muted, unmuted) $iif( $1 == +, you for reason: $iif($3,$3-,No reason.), That was your only warning.. Do not annoy me again or you will be banned.)
}
Ok probably works just fine.i can\'t test it on the server im on its chatspace v.4.0 so the code won\'t work for me.Altho i got some pretty weird things that happened when i did test it.The code did what it was supposed to and +q the nickname entered and for some reason whois\'s the chatter.Not sure why but in about i think 30 seconds it unmutes the chatter, and the notice doesn\'t send on the /mute.Also the /unmute+ nickname the +q isnt removed but the notice is sent.But this is just cause it not the right type of server is all either way its useful.Good job.`-.-