i was looking for something like this, i saw an anti flood made by zainul, and then i made this for my needs:
on 1:TEXT:*:?:{
if ($nick == $me) {
halt
}
if ($nick isop $chan) {
halt
}
inc -u5 %flood. [ $+ [ $nick ] ]
if (%flood. [ $+ [ $nick ] ] == 6) {
/ignore -u40 $nick
halt
}
}
it will block the user that flood (include querys) for the time i set..
I just follow the xDaeMoN advice and voila..