i wanted to make my own antiflood script. it will be very useful and easy if i can use the internal flood-**** settings of the bot. them can easy set up. the detection for them is ok too.
Code: Select all
(30) FLUD (stackable)
bind flud <flags> <type> <proc>
procname <nick> <user@host> <handle> <type> <channel>
Description: any floods detected through the flood control settings
(like 'flood-ctcp') are sent here before processing. If the proc
returns 1, no further action is taken on the flood; if the proc
returns 0, the bot will do its normal "punishment" for the flood.
The flood types are: pub, msg, join, or ctcp (and can be masked to
"*" for the bind); flags are ignored.
Module: server
Code: Select all
bind flud - "*" floodtest111
proc floodtest111 { nickname hostname handle type channel } {
putlog "floodscript $nickname $hostname $handle $type $channel" }
return 0
you won`t see the rest of noob coding tcl it`s just getchanhost, mode +b, utimer 10 kick user.
my problem is. the bot will not detect bigger floods. if 1 user flood at the same time the script work just perfect as it should.
but if 2-10 users flood at the same time, the bot won`t do anything.
i tested it without any scripts (no binds flud). the internal eggdrop function works. it will only kick 1 users which is flooding but on big floods the bot do nothing. this last sentence is my question: is this a bug or is my code wrong?