Mirc Muter!

By fatso913 on Sep 02, 2007

CODE CREATED BY FATSO913 - http://www.mikedontcare.com

This is a simple code that just "Mute's" The user of your choice.
You must be an Half-Op Or higher to use this script.

PASTE THE BELOW SCRIPT IN THE ALIASES SECTION OF THE SCRIPTS EDITOR
This can be activated by typing "/mute " Once the Script has been entered into the ALIASES section you can goto the Remote Section and paste the following:

menu nicklist {
  Mute User:/mute $$1
}

You will now be able to right click on a user in the NickList and Mute them by pressing "Mute User"

   <u>**PLEASE READ THE INTRODUCTION FIRST!**</u>
mute {
  say $1-, You are now muted from # until Further Notice.
  mode # +m
  mode # -havoqe $1- $1- $1- $1- $1- $1-
}

Comments

Sign in to comment.
big_boya   -  Dec 20, 2008

i think /mode <#channel> +b just beats all or if they have powa just akick will do

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

[ It would ignore the ones you can\'t use and simply put \'#channel You\'re not a channel owner.\' ] - Nevermind, that would be if the server supported qa modes.

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

It would ignore the ones you can\'t use and simply put \'#channel You\'re not a channel owner.\'

@ fatso913, you should make it -ohve and use if ($me isop $chan) so you are not including modes a server doesn\'t have.

 Respond  
guest598594   -  Sep 03, 2007

-q means channel owner with chanserv btw

 Respond  
napa182   -  Sep 03, 2007

i dont get why you would put the -q isent q chan owner? cuz it is on the server im on

 Respond  
guest598594   -  Sep 03, 2007

good idea

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

Ah, I see. I misunderstood the point of your previous code and thought that it was only for one nick. =0 In that case you might as well use $addtok to simple set the nicks to one variable.

 Respond  
guest598594   -  Sep 03, 2007

if ur real desperate to ignore someone, u might wanna add /ignore $1

 Respond  
guest598594   -  Sep 03, 2007

what im sayin, is if there are previously muted nicks in the channel still, you wouldnt want to voice them!

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

Wouldn\'t the mode # -havoqe already take care of the -v to the muted nick? =x

 Respond  
guest598594   -  Sep 03, 2007
menu nicklist { 
  $iif(%muted [ $+ [ $1 ] ],Unmute,Mute) $1: $iif(%muted [ $+ [ $1 ] ],unmute,mute) $1
  Unmute All { unset %muted* | mode # -m | say Everyone is now unmuted from # $+ . }
}
alias unmute unset %muted [ $+ [ $1 ] ] | say $1 is now unmuted from # $+ .

on *:join:#:{ 
  if (%muted [ $+ [ $nick ] ] == muted) { 
    timer 1 5 mode # -havoqe $str($nick $chr(32),6)
    msg $chan $nick $+ , You are muted from # until Further Notice.
  }
}
alias mute { 
  var %x = 1 
  while ($nick($active, %x)) { 
    mode # +vvv $nick($active, %x) | inc %x 1 
    if (%muted [ $+ [ $nick($active, %x ] ] == muted) mode # -v $nick($active, %x)
  }
  mode # +m
  mode # -havoqe $str($1- $chr(32),6)
  say $1 $+ , you are now muted from $chan until further notice.
  set %muted [ $+ [ $1 ] ] muted  
}

that should work

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

Well, sure if you want to combine our codes go for it. But to clarify, the order of the script should voice everyone then devoice the muted nick.

 Respond  
guest598594   -  Sep 03, 2007

well, if u do that u might voice someone that is supposed to be unmuted...so if u do mine and urs combines or w/e, ud need to check if %muted [ $+ [ $nick ] ] == muted, mode # -v $nick

 Respond  
Ghost-lit Warder   -  Sep 03, 2007
alias mute { 
  var %x = 1 
  while ($nick($active, %x)) { 
    mode # +vvv $nick($active, %x) | inc %x 1 
  }
  mode # +m
  mode # -havoqe $str($1- $chr(32),6)
  say $1 $+ , you are now muted from $chan until further notice.
}

That should work. It will voice everyone else first and then set +m.

 Respond  
guest598594   -  Sep 03, 2007

ah i see, nvm

 Respond  
guest598594   -  Sep 03, 2007

why just menu nicklist? how bout

menu * {

 Respond  
kerstt   -  Sep 03, 2007

mode # -havoqe $1- $1- $1- $1- $1- $1-

try using $str

mode # -havoqe $str($1- $chr(32),6)

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

If that is true, then I recommend he include that in the introduction. ;)

 Respond  
napa182   -  Sep 03, 2007

well maybe it was made for a room that has auto voice users on it.

 Respond  
Ghost-lit Warder   -  Sep 03, 2007

How about voicing every other user before you devoice the muted user, so you don\'t have others muted as well.

 Respond  
Godzilla   -  Sep 02, 2007

It has a few errors, it can be:

mute {
  say $1 $+ , You are now muted from $chan until Further Notice.
  mode $chan +m
  mode $chan -qaohve $1 $1 $1 $1 $1 $1
}
 Respond  
Scakk   -  Sep 02, 2007

The line \" mode # +m \" will mute the entire channel not just a single user.

 Respond  
Akishoot   -  Sep 02, 2007

Ahh scratch that first part :3. I didn\'t read the Introduction (Dee dee dee) :|

 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.