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 

Dynamic ban problems

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


Joined: 12 Nov 2006
Posts: 11

PostPosted: Sun Nov 12, 2006 4:32 am    Post subject: Dynamic ban problems Reply with quote

Sorry if this answer to this question is really obvious, but I tried to mess around with my eggdrop and search for the answer. Well basically what my problem is that when I place a ban on a channel in efnet my bot will remove it after the specified bantime. If the person who i banned rejoins the channel with the same host the bot doesnt place the ban unless I actually dcc to the bot and do a .+ban host chan. Is there anyway to remedy this?
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sun Nov 12, 2006 5:40 am    Post subject: Reply with quote

Quote:
+ban <hostmask> [channel] [%<XdXhXm>] [comment]
Adds a ban to the list of permanent bans stored on the bot, with optional comment and bantime. This ban will be in effect for every channel on the bot if no channel is supplied, and is stored with your nickname and comment. Prefixing a comment with @ will make it only visible within the bot. Bantime has to be expressed in days, hours and/or minutes.

Examples

.+ban *!loser@*.isp.net #CowChat get out
.+ban *yousuck*!*@* %1h30m change your nick please

Eggdrop Command Reference (Channels)
_________________
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
scarpa
Voice


Joined: 12 Nov 2006
Posts: 11

PostPosted: Sun Nov 12, 2006 6:43 am    Post subject: Reply with quote

Yeah i get that, i was just wondering if there was anyway i could make the bans i set in the channel perm.. with dynamic bans the bot takes it down and doesnt put it back up when the person with that host returns. I have seen other people configure there bots that way and just want to know if thats a setting somewhere or a tcl.
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sun Nov 12, 2006 8:46 am    Post subject: Reply with quote

There is a setting, I posted it.

That is done via DCC.

To stop the bot removing a ban after the default 120 minutes simply do the following:
Code:
.chanset #chan -dynamicbans

_________________
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
scarpa
Voice


Joined: 12 Nov 2006
Posts: 11

PostPosted: Sun Nov 12, 2006 9:04 am    Post subject: Reply with quote

lol, okay i get that, if i want to ban a host perm i just dcc to the bot and ban the host that way. What I was asking is if another op or I chose to place the ban in the channel rather then the bot, is there anyway to make that perm without dccing to the bot? cause if i place a ban in the channel when it expires the bot just takes it down and never replaces it. it will only replace it if i place the ban via dcc, but the other ops cant dcc to my bots and doing it in the channel is easier and less complicated since most of the banning is done by scripts on my mirc client. I could just take off dynamic bans but i like having it since it keeps the banlist neat and without it the banlist would also fill up too fast.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Nov 12, 2006 1:09 pm    Post subject: Reply with quote

You would need a little script to catch the mode change in channel and turn it into a bot-permban, check the tcl archive, I'd bet there are more than a few already available to do just that.
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun Nov 12, 2006 3:16 pm    Post subject: Reply with quote

Actually, setting the bantime to 0 should solve the problem.
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sun Nov 12, 2006 4:48 pm    Post subject: Reply with quote

metroid wrote:
Actually, setting the bantime to 0 should solve the problem.

Apparently no one reads these days.
_________________
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
scarpa
Voice


Joined: 12 Nov 2006
Posts: 11

PostPosted: Sun Nov 12, 2006 8:12 pm    Post subject: Reply with quote

Setting bantime to 0 will just make all the bans perm, which is not what i want. I will however look in the tcl archive and look for a script that does what I want Thanks Alchera and rosc2112 for your help. If i find the tcl that fits i'll post it here incase anyone else has the same problem. The thing is that I was sure the eggdrop would make all bans placed by ops perm Rolling Eyes
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Mon Nov 13, 2006 2:19 am    Post subject: Reply with quote

Making the bans permanent is what makes the bot remember and ban next time.

Setting the ban time to 0 achieves this.

There are Tcl scripts in the archives that make it easier by not having to be in the party line all the time; although purists cringe at any other method.
_________________
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
scarpa
Voice


Joined: 12 Nov 2006
Posts: 11

PostPosted: Mon Nov 13, 2006 4:11 am    Post subject: Reply with quote

Okay, so i set the ban time to 0.. and what happens is the bot never takes the ban down.. If i take it down manually and the person rejoins the but still doesnt ban them. I never had this problem before, just when i got the new eggdrop v 1.6.18. They only way to make the ban perminant is to dcc the bot but I know i have had it just remove the bans and remember them. I reread eggdrop.conf and it says "dynamicbans
# Only activate bans on the channel when necessary? This keeps
# the channel's ban list from getting excessively long. The bot
# still remembers every ban, but it only activates a ban on the
# channel when it sees someone join who matches that ban. " So im guessing there is just something wrong with my eggdrop. I would like to avoid using a tcl if at all possible.
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Mon Nov 13, 2006 8:56 am    Post subject: Reply with quote

Setting ban time to zero is only part of how things are done. The "+/-dynamicbans" setting is another part.

One sets:
Code:
.chanset #chan +dynamicbans

The removal of that ban is 120 minutes (default) BUT the bot remembers it and that timing can be set in the configuration file:
Quote:
set global-ban-time 120
....
# ban-time 120
# Set here how long temporary bans will last (in minutes). If you
# set this setting to 0, the bot will never remove them.

There are a number of Tcl scripts in the archives that act as a "front-end" alternative to using the party line (purists cringe at this short-cut).

I suggest a study of the Eggdrop Command Reference
_________________
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
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