Mute Ban

By Fan_Of_Ur_Mom on Dec 17, 2007

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.
}

Comments

Sign in to comment.
a careful warchild   -  Oct 04, 2008

i do like this one

 Respond  
chadbdurham   -  Jul 05, 2008

Nice Scakk :o

 Respond  
Scakk   -  Dec 19, 2007

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.)
}
 Respond  
Fan_Of_Ur_Mom   -  Dec 19, 2007

Thank you mountaindew. It\'s done. >:) El the server I\'m on frostwire server(chat.peercommons.net 6667) It worked great it\'s weird it didn\'t on your\'s. Thanks for the help/comments. >:)

 Respond  
guest598594   -  Dec 17, 2007

Introduction:
...
/unmute will unmute the chatter

alias unmute+ {

might wanna take the + out of the alias ;)

 Respond  
guest598594   -  Dec 17, 2007
  mode $chan -aohv $$1 $$1 $$1 $$1

/help $str

 Respond  
EL   -  Dec 17, 2007

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.`-.-

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.