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.

Ban flooders ?

Old posts that have not been replied to for several years.
Locked
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Ban flooders ?

Post by ZeleD »

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 :evil: ) and want to know if it can be done without scripting
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Post by Xpert »

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 :P
Xpert.
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Post by ZeleD »

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.
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Post by Xpert »

Well, for that i think you need a TCL script.
Xpert.
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Great!

Post by ZeleD »

Xpert wrote:Well, for that i think you need a TCL script.
Okay, thought so....

any clues on how to detect the flooding event ?
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Post by Xpert »

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.
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Post by ZeleD »

Thanks alot m8.

You just spared me a great time
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Post by Xpert »

Your welcome :P
Xpert.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

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?
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Post by ZeleD »

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
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

The script!

Post by ZeleD »

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"
User avatar
Xpert
Halfop
Posts: 88
Joined: Mon Mar 08, 2004 7:03 am

Re: The script!

Post by Xpert »

ZeleD wrote:if {$type == "pub"} {
Sorry, my mistake.
Xpert.
Z
ZeleD
Voice
Posts: 11
Joined: Thu Nov 20, 2003 6:14 pm

Re: The script!

Post by ZeleD »

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
Locked