egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Text flood kick or ban (Solved)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Fri Jan 04, 2008 9:24 pm    Post subject: Text flood kick or ban (Solved) Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Jan 04, 2008 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Fri Jan 04, 2008 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Jan 04, 2008 11:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Sat Jan 05, 2008 1:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Jan 05, 2008 8:03 pm    Post subject: Reply with quote

Undernet uses either of the following for channel status?
Quote:
@ & ~ !

... 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
View user's profile Send private message Visit poster's website
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun Jan 06, 2008 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Wed Jan 09, 2008 1:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jan 09, 2008 2:51 pm    Post subject: Reply with quote

Read Tcl-commands.doc about the FLUD bind.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Thu Jan 10, 2008 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Thu Jan 10, 2008 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Thu Jan 10, 2008 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Fri Jan 11, 2008 3:28 am    Post subject: Reply with quote

I think you should replace
Code:
putkick "$c $n flood_texte"
by
Code:
putkick $c $n "flood_texte"
Back to top
View user's profile Send private message
gemeau50
Voice


Joined: 11 Jun 2004
Posts: 38
Location: Trois-Rivières, Canada

PostPosted: Fri Jan 11, 2008 6:14 am    Post subject: Reply with quote

Thank you all! It works fine.
Back to top
View user's profile Send private message
arvent
Voice


Joined: 13 Mar 2012
Posts: 4
Location: Bulgaria

PostPosted: Tue Mar 13, 2012 9:38 am    Post subject: Reply with quote

Thank You! Works great and do really nice job.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber