Flood Protection
Platform: mIRC
Published Jul 25, 2010
Updated Jul 25, 2010
This is a quick snippet I made. It flood protects your channel.
It only works if the channel has it enabled.
Commands:
!flood on -- Turns flood protection on for that channel.
!flood off -- Turns flood protection off for that channel.
Thanks, enjoy!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; Made By Jackster35 ;;;;;;;
;;;;;;;;; http://jackster35.co.uk/ ;;;;;;;
;;;;;;;;; DO NOT COPY! ;;;;;;;
;;;;;;;;; Hawkee user: Jackster35-1 ;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on *:TEXT:*:#:{
if (%flood. [ $+ [ $chan ] ] == on) {
inc -u5 %flood. [ $+ [ $nick ] ] 1
if (%flood. [ $+ [ $nick ] ] >= 5) {
/mode $chan +b $address($nick,0)
/kick $chan $nick Flood Protection activated! This ban will expire in 10 minutes.
.timer 1 600 /mode $chan -b $address($nick,0)
}
}
}
on *:TEXT:!flood *:#:{
if ($nick isop $chan) {
if ($2 == on) {
set %flood. [ $+ [ $chan ] ] on
msg $chan Flood protection now on. People will now be kick with 5 lines or more.
}
if ($2 == off) {
unset %flood. [ $+ [ $chan ] ]
msg $chan Flood protection now off.
}
}
else {
msg $chan Error: Only ops can use this command.
}
}