This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Mon Mar 08, 2004 11:40 am
Is there a way ban flooders without scripting ?
I want to temp. ban users who violate my flooding settings.
I know theres severel scripts out there, but as I tend to use my own scripts (that way I know why it fails
) and want to know if it can be done without scripting
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Mon Mar 08, 2004 1:17 pm
I think
Code: Select all
.chanset #channel flood-chan 10:60
is what you are meaning to.
# flood-chan 10:60
# Set here how many channel messages in how many seconds from one
# host constitutes a flood. Setting this to 0 or 0:0 disables
# flood protection for the channel.
Try that
Xpert.
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Mon Mar 08, 2004 5:02 pm
Well yes.
I have
.chanset #channel 5:20
This way users sending 5 or more messages will kick the user.....
But I want the user banned for 5 minutes.
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Tue Mar 09, 2004 7:28 am
Well, for that i think you need a TCL script.
Xpert.
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Tue Mar 09, 2004 8:17 am
Xpert wrote: Well, for that i think you need a TCL script.
Okay, thought so....
any clues on how to detect the flooding event ?
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Tue Mar 09, 2004 9:40 am
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
Example:
Code: Select all
bind flud - * chat:flood
proc chat:flood {nick host hand type chan} {
if {$type == "msg"} {
putserv "MODE $chan +b $host"
putserv "KICK $chan $nick :Flooding."
return 1
}
}
Xpert.
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Tue Mar 09, 2004 10:53 am
Thanks alot m8.
You just spared me a great time
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Tue Mar 09, 2004 11:08 am
Your welcome
Xpert.
YooHoo
Owner
Posts: 939 Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast
Post
by YooHoo » Wed Mar 10, 2004 12:36 am
and setting set ban-time 5 in the conf file wouldn't do this exact thing, without the need for the script, as you originally asked?
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Wed Mar 10, 2004 4:38 am
YooHoo wrote: and setting set ban-time 5 in the conf file wouldn't do this exact thing, without the need for the script, as you originally asked?
No, as the bot only kicks the user
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Wed Mar 10, 2004 5:28 am
Should anyone need such a script I will post here as the one posted by xpert was faulty.
# Enter channels list
set channels [list "channel" "channel"]
bind flud - * flooded
proc flooded {nick uhost handle type channel} {
global channels
set chan [string tolower $channel]
if {$type == "pub"} {
putlog "MESSAGE FLOOD DETECTED: $chan"
set sres [lsearch $channels $chan]
if {$sres != 1} {
putserv "MODE $channel +b $uhost"
putkick $channel $nick "5 Mins ban: Message flooder"
timer 5 [list putserv "MODE $chan -b $uhost"]
return 1
}
}
}
putlog "Flood Banner 1.0 loaded"
Xpert
Halfop
Posts: 88 Joined: Mon Mar 08, 2004 7:03 am
Post
by Xpert » Wed Mar 10, 2004 7:19 am
ZeleD wrote: if {$type == "pub"} {
Sorry, my mistake.
Xpert.
ZeleD
Voice
Posts: 11 Joined: Thu Nov 20, 2003 6:14 pm
Post
by ZeleD » Wed Mar 10, 2004 8:40 am
Xpert wrote: ZeleD wrote: if {$type == "pub"} {
Sorry, my mistake.
No problem m8.... Found the error..... Still, you get the credit for the main thing