Top

Silence on Flood


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  7.0
Scores Submitted  1
Date Added  Mar 03, 2008
Last Updated  Mar 03, 2008
Tags  ban  flood  protection  silence 
  Bookmark and Share

Introduction

After submitting 8 lines of text within 5 seconds, a user will be silenced in the channel for two minutes, as well as given a warning to not flood.

Also, the script will send a message to #staff notifying users in #staff that the user has been silenced in the channel. This is obviously an optional feature.

Additionally, if the user is an operator on the channel, then it will have no effect.

Grab the Code

Comments

  (8)  RSS
Slite89
Comments: 2
 
mIRC Snippet:  Silence on Flood
Posted on Mar 3, 2008 1:09 am
I was mostly wondering if there is a way to undo the silence without using the timer. It seems to me as if more than one person were flooding in the same two minute period, the timer would reset itself and the first silence would not be removed in the allotted two minutes.
napa182
Comments: 1,133
 
mIRC Snippet:  Silence on Flood
Posted on Mar 3, 2008 1:45 am
you can try this Oh and also you can not set off ur own on text events so you dont need to use if ($nick == $me) { halt
Code:
on @*:TEXT:*:#:{
  if ($nick(#,$nick,r))  {
    inc -u5 $+(%,flood.,$nick)
    if ($($+(%,flood.,$nick),2) = 8) {
      mode $chan +b ~q: $+ $address($nick,2)
      msg $chan $nick You have been silenced for two minutes. Please don't flood.
      msg #staff $nick has been silenced in $chan for flooding.
      $+(.,timersilenced,.,$nick) 1 120 mode $chan -b ~q: $+ $address($nick,2)
    }
  }
}

napa182
Comments: 1,133
 
mIRC Snippet:  Silence on Flood
Posted on Mar 3, 2008 1:51 am
that will set a timer to each nick that floods ;)
Slite89
Comments: 2
 
mIRC Snippet:  Silence on Flood
Posted on Mar 3, 2008 10:47 pm
Thanks napa182
Doodle
Comments: 19
 
mIRC Snippet:  Silence on Flood
Posted on Aug 18, 2008 1:41 am
Hi slite.
Doodle
Comments: 19
 
mIRC Snippet:  Silence on Flood
Posted on Aug 18, 2008 1:42 am
hmm

whats the proper 'if' if they're voiced?
AlexHopper
Comments: 20
 
mIRC Snippet:  Silence on Flood
Posted on Aug 30, 2008 9:08 pm
this is a good one =3
Code:

menu channel {
  .$iif($group(#flood-kick).status iswm on, flood-kick is on, flood-kick is off)
  ..Turn flood-kick off:disable #flood-kick
  ..Turn flood-kick on:enable #flood-kick
}

#flood-kick on
on *:TEXT:*:#:{
  if ($nick == $me) {
    halt
  }
  if ($nick isop $chan) {
    halt
  }
  inc -u5 %flood. [ $+ [ $nick ] ]
  if (%flood. [ $+ [ $nick ] ] == 8) {
    /mode $chan +q $+ $address( $nick , 2 )
    /msg $chan $nick You have been silenced for two minutes. Please don't flood.
    /msg #staff $nick has been silenced in $chan for flooding.
    /timer 1 120 /mode $chan -q $+ $address( $nick , 2 )
  }
}
#flood-kick end
napa182
Comments: 1,133
 
mIRC Snippet:  Silence on Flood
Posted on Aug 31, 2008 12:34 am
you can use it this way so you can turn it on in channels you want it to run in
Code:
on @*:TEXT:*:#:{
  if ($nick(#,$nick,r) && $istok(%sflood,$chan,44))  {
    inc -u5 $+(%,flood.,$nick)
    if ($($+(%,flood.,$nick),2) = 8) {
      mode $chan +b ~q: $+ $address($nick,2)
      msg $chan $nick You have been silenced for two minutes. Please don't flood.
      msg #staff $nick has been silenced in $chan for flooding.
      $+(.,timersilenced,.,$nick) 1 120 mode $chan -b ~q: $+ $address($nick,2)
    }
  }
}
menu channel {
  .Silence on Flood
  .. $iif($istok(%sflood,$chan,44),Turn Off in Room # ,Turn On in Room # ):{ set %sflood $iif(!$istok(%sflood,$chan,44),$addtok(%sflood,$chan,44),$remtok(%sflood,$chan,1,44)) | echo -a $iif($istok(%sflood,$chan,44),Silence on Flood is now On in room # .,Silence on Flood is now Off in room # .) }
}


Doodle said:
Quote:
whats the proper 'if' if they're voiced?

um you can do it like this
Code:
 if ($nick isvoice #) or you can do it like this if ($nick(#,$nick,v) or you can add both voiced and reg users to it like this
if ($nick(#,$nick,vr)

Please Register or Login to start posting comments.
Bottom