This simple snippet use for protect from others flood bots. This script will close all query that come from the flood suspect. And also ignore other user for 60 secs.
on *:OPEN:?:*: {
inc -u3 %spam. [ $+ [ $+(nick,$cid) ] ]
if (%spam. [ $+ [ $+(nick,$cid) ] ] == 3) {
echo -as 4[ $+ $time $+ ]12 Ignoring All in 1 Minutes (Flood Detected)
.ignore -u60 *!*@*
close -m $nick
var %a.isi = %spam1. [ $+ [ $+(nick,$cid) ] ]
var %a.hit = 1, %a.total = $numtok(%a.isi,44)
while (%a.hit <= %a.total) {
close -m $gettok(%a.isi,%a.hit,44)
inc %a.hit
}
.timer 1 60 echo -as 4[ $+ $time $+ ]12 Ignoring All Off
if ($window(@Flood,0) == 0) { window -eknl0 @Flood tahoma } | .aline -p @Flood $jam from: $nick $+ %spam1. [ $+ [ $+(nick,$cid) ] ] 9»3 $1-
halt
}
elseif (%spam. [ $+ [ $+(nick,$cid) ] ] < 3) {
set -u10 %spam1. [ $+ [ $+(nick,$cid) ] ] %spam1. [ $+ [ $+(nick,$cid) ] ] $+ $iif((%spam. [ $+ [ $+(nick,$cid) ] ] > 0),$chr(44)) $+ $nick
}
}
as a build on from napa's code there... i would probably add a warning to the nick before the ignore kicked in. also .... looking at mirc, under mirc options there is an inbuilt flood protector which is most useful which is set for ignore time / per lines
on *:text:*:?:{
inc -u2 $+(%,p2p,.,$nick)
if ($($+(%,p2p,.,$nick),2) = 4) {
.msg $nick please do not flood my pm box as it has triggered a timed ignore on you
.close -m $nick
.ignore -pu60 $address($nick,2)
echo -ta *** P2P flood from $nick Address $address($nick,2) - Ignoring P2P's for 60secs...
}
}
why ignore everyone? why not ignore the one thats flooding you?
just seems it would be ez just to do this
on *:text:*:?:{
inc -u2 $+(%,p2p,.,$nick)
if ($($+(%,p2p,.,$nick),2) = 4) {
.close -m $nick
.ignore -pu60 $address($nick,2)
echo -ta *** P2P flood from $nick Address $address($nick,2) - Ignoring P2P's for 60secs...
}
}
oh yeah btw whats $jam ??? is it some alias you didnt include?