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.

Channel Flood protection...

Old posts that have not been replied to for several years.
Locked
G
Guest

Post by Guest »

Just wanted to know how I could set my eggdrop to kickban for flood ?

Actually it just kick the flooder...
i
inv|s|ble

Post by inv|s|ble »

There are a few good tcls for flood protection, besides the built in flood proctection eggdrops have, the built in flood protection is accessed with .chanset #CHANNEL flood-chan #1:#2 where as #1 being the number of lines, and #2 being in how many seconds constitutes a flood, Sentinel.tcl comes with the eggdrop package, and is in the scripts/ directory. Check it out.
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Add this to the end of your eggdrop.conf file:

Code: Select all

bind flud * flud_ban
proc flud_ban {nick uhost hand type chan} {
  putserv "MODE $chan +b [maskhost $uhost]"
}

User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Cool

<font size=-1>[ This Message was edited by: caesar on 2001-12-02 05:14 ]</font>
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

After reading the tcl-commands.doc I got to the next conlusion:

chage from:
--------------------
bind flud * flud_ban
--------------------

to:
----------------------
bind flud * * flud_ban
----------------------

and this works perfectly :smile:


<font size=-1>[ This Message was edited by: caesar on 2001-12-02 05:15 ]</font>
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Btw I found a bug or something like this in this tcl. If someone do a flood on the channel kick+ban the user(s), but if is doin a flood on him:
---
TCL error [flud_ban]: illegal channel: *
---
so this meens that this is not perfect. :smile: If want it perfect then you got to add some lines with the destination for channel and for bot so that he to know what to do.

He ignores the user(s) but that line comes up. :smile: Thx for this ideea. I think it's neat!
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Sorry, you could tell by the time I was tired last night.

Code: Select all

bind flud - * flud_ban
proc flud_ban {nick uhost hand type chan} {
  if {[validchan $chan]} {
    putserv "MODE $chan +b [maskhost $uhost]"
}
}
[code]

W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Grr:

Code: Select all

bind flud - * flud_ban
proc flud_ban {nick uhost hand type chan} {
  if {[validchan $chan]} {
    putserv "MODE $chan +b [maskhost $uhost]"
}
}

User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Well I got to admit that I was wrong. The previous tcl din't work at me coz I had a little problem with an other tcl wich result an conflict betwen them. This final code work's perfect. About the "bind flud - * flud_ban" as I read in the tcl-commands.doc, should be "bind flud * * flud_ban" but I see that this the same thins so this can be used in the bouth modes. Sorry if I upset you with something .. I din't want to be rude or something. Nice work Wcc and thx for this cool ideea. :smile:
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It make good programming sence to use "-" instead of "*" in place of the flag in a bind command.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I see. Thx for the advice.
Locked