Silence on Flood
Platform: mIRC
Published Mar 03, 2008
Updated Mar 03, 2008
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.
on *:TEXT:*:#:{
if ($nick == $me) {
halt
}
if ($nick isop $chan) {
halt
}
inc -u5 %flood. [ $+ [ $nick ] ]
if (%flood. [ $+ [ $nick ] ] == 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.
/timer 5 120 /mode $chan -b ~q: $+ $address( $nick , 2 )
}
}