| View previous topic :: View next topic |
| Author |
Message |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Fri Jan 04, 2008 9:24 pm Post subject: Text flood kick or ban (Solved) |
|
|
Our eggdrop only kick offenders for text flood. I cannot retrieve the parameter in the config file to make it ban.
Anyone knows how this parameter is called?
Tx in advance
Last edited by gemeau50 on Fri Jan 11, 2008 6:14 am; edited 3 times in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Jan 04, 2008 9:46 pm Post subject: |
|
|
Is it a script that causing this behavior or Eggdrop's built-in flood-chan protection? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Fri Jan 04, 2008 11:00 pm Post subject: |
|
|
| It is the eggdrop's built-in flood-chan protection. We are not using the Sentinel TCL because it uses modes +mi to lock the channel. Being on Undernet, we are using mode +r. Flooders are never registered. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Jan 04, 2008 11:14 pm Post subject: |
|
|
Recheck your settings against the defaults in eggdrop.conf. Also check that your net-type is set to 2 (Undernet).
You may also need to look at max-bans, max-exempts, max-invites, max-modes & opchars. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Sat Jan 05, 2008 1:23 pm Post subject: |
|
|
net-type is 2
max-bans 45
Undernet doesn't recognized +E +I
max-modes 45
Banlist never full, we have a script on another machine which takes care of that.
opchars "@"
set global-flood-chan 4:10
I compare both config files as recommended but I couldn't find no parameters giving me a choice to either kick or ban. This is what I'm looking for. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Jan 05, 2008 8:03 pm Post subject: |
|
|
Undernet uses either of the following for channel status?
... if so, add to the opchars variable.
A properly configured eggdrop will function 100% on any of the selected networks in the configuration file. It's internal channel protection settings will work (read kick/ban) if the various channel flood control settings are set sanely.
To alter existing channel settings the ".chanset #chan <option>" trigger is required. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Jan 06, 2008 1:53 am Post subject: |
|
|
eggdrop normally only kicks for floods, you need a script to change that behavior
| Code: |
bind flud - pub flud:ban
bind flud - join flud:ban
proc flud:ban ( n u h t c } {
putserv "mode $c +b *!$u"
putkick "$c $n temp flood ban"
} |
should work nicely for banning channel message and channel join flooders |
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Wed Jan 09, 2008 1:20 pm Post subject: |
|
|
Tx for your snippet but TCL is not my script language.
Before binding a process, shouldn't I unbind something?
Also I would appreciate if you could tell me the meaning of the following:
n u h t c and $c
As for the format of the ban address, which format will *!$u trigger?
I am looking for the following format
*!*@everything_which_comes_after |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Thu Jan 10, 2008 5:10 pm Post subject: |
|
|
We removed " bind flud - join flud:ban " since we don't want the bot to ban for join/part yet.
Here is what I am getting when trying to load that tcl:
[15:36:14] Tcl error in file 'egg.config':
[15:36:14] wrong # args: should be "proc name args body"
while executing
"proc flud:ban ( n u h t c } {
putserv "mode $c +b *!$u"
putkick "$c $n flood texte"
}"
(file "scripts/banfloodtext.tcl" line 4)
invoked from within
"source scripts/banfloodtext.tcl"
(file "egg.config" line 1368)
[15:36:14] * FICHIER DE CONFIGURATION NON CHARGE (INTROUVABLE OU ERREUR) ( config file not loaded )
Any ideas? |
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Thu Jan 10, 2008 5:18 pm Post subject: |
|
|
I think DragnLord means { instead of (. So replace | Code: | | proc flud:ban ( n u h t c } { | by | Code: | | proc flud:ban { n u h t c } { |
|
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Thu Jan 10, 2008 8:18 pm Post subject: |
|
|
Tx! Now it does what I wanted it to do; kick et ban the offender.
But here is what I noticed.
1 - The eggdrop kicks the user using a default comment.
2 - Then ban the user
[20:17:18] <eggdrop> [20:17:23] Tcl error [flud:ban]: wrong # args: should be "putkick channel nick?s? ?comment?"
[20:17:19] * |nick was kicked by eggdrop (flood)
[20:17:20] * eggdrop sets mode: +b *!userid@complete.address
Actual TCL reads as follows:
| Code: | bind flud - pub flud:ban
proc flud:ban { n u h t c } {
putserv "mode $c +b *!$u"
putkick "$c $n flood_texte"
} |
|
|
| Back to top |
|
 |
Zircon Op
Joined: 21 Aug 2006 Posts: 191 Location: Montreal
|
Posted: Fri Jan 11, 2008 3:28 am Post subject: |
|
|
I think you should replace | Code: | | putkick "$c $n flood_texte" | by | Code: | | putkick $c $n "flood_texte" |
|
|
| Back to top |
|
 |
gemeau50 Voice
Joined: 11 Jun 2004 Posts: 38 Location: Trois-Rivières, Canada
|
Posted: Fri Jan 11, 2008 6:14 am Post subject: |
|
|
| Thank you all! It works fine. |
|
| Back to top |
|
 |
arvent Voice
Joined: 13 Mar 2012 Posts: 4 Location: Bulgaria
|
Posted: Tue Mar 13, 2012 9:38 am Post subject: |
|
|
| Thank You! Works great and do really nice job. |
|
| Back to top |
|
 |
|