mute

By _Lestat_ on Dec 04, 2011

Simple enough I hadn't seen a mute script on here that was made by trigger so I decided I would make one

on *:text:!hush*:#: { if ($nick isop $chan) {
    set %Muter $2 $address($2-,1) 
    set %mute $chan
    mode $chan -v+b $address($2-,1) ~q: $+ $address($2-,1) 
    mode $chan -vqaoh+b $2 $2 $2 $2 $2 ~q: $+ $2
  }
} 

ON !*:NICK:{ 
  if ($nick == $gettok(%Muter,1,32)) {
    set %Muter $newnick $address($newnick,2) $chan 
  } 
}
ON !@*:JOIN:#:{ 
  if ($+(*,$gettok(%muter,2,32),*) iswm $wildsite) && (# == $gettok(%Muter,3,32)) {
    set %Muter $nick $address($nick,2) $chan 
    .timerdeop 1 1 check_nickop
  }
}

on !@*:RAWMODE:#:{
  if ($regex($1,/(a|v|o|h|q)/iS)) && ($2 == $gettok(%Muter,1,32)) && (# == $gettok(%Muter,3,32)) {
    mode $chan - $+ $regml(1) $2-
  }
}

alias check_nickop { 
  tokenize 32 %Muter
  mode $gettok(%Muter,3,32) -qaohv $2 $2 $2 $2 $2
}
on *:text:!speak*:#: { 
  if ($nick isop $chan) { 
    msg $chan $2 you have been taken off mute now please play nice | notice $2 if you have a higher access please update or whatnot. 
    mode $chan +v-b $address($2-,1) ~q: $+ $address($2-,1) 
    mode $chan +v-b $2 $2 $2 $2 $2 ~q: $+ $2
    unset %muter
  }
}

Comments

Sign in to comment.
jaydawg   -  Dec 15, 2011

Obviously an easier option if the chan has 100 users dodge and no auto voice, otherwise you would need to give voice to 99 users to mute one after setting m+. This is a great idea, nice work lestat.

 Respond  
Dodge   -  Dec 08, 2011

why not set #chan to +,- m

 Respond  
_Lestat_   -  Dec 08, 2011

yep this command is set up for unrealircd only

 Respond  
Amiga600   -  Dec 05, 2011

Actually the MuteBan's I know of are these:

UnrealIRCd: +b ~q:nick!ident@host
InspIRCd: +b m:nick!ident@host
Hyperion: +q nick!ident@host

and I have already written a script which works Cross-Network here: http://www.hawkee.com/snippet/7421/

 Respond  
Fuzionx   -  Dec 05, 2011

No, muting is still +q and not +m, on SwiftIRC though, might be different on another server.

 Respond  
_Lestat_   -  Dec 05, 2011

I am not totally sure actually I think they might be the same this is just the way I knew of

 Respond  
Chinshy   -  Dec 05, 2011

isnt the mute command changed to /mode #chan +b m:!@*

 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.