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.

Bot unbans all by itself

Old posts that have not been replied to for several years.
Locked
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Bot unbans all by itself

Post by z_one »

Hi,

I have the following in my .conf file:

set max-bans 98
set ban-time 900000
set bounce-bans 1

And I am not using any script on my bot.

Yet it unbans channel bans all by itself every now and then !

Can anyone suggest anything ? Thanks.

z_one
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

This is standard behaviour.

The eggdrop keeps an internal ban list of people who are banned, and normally only adds the ban to the channel when it needs to (i.e. when someone joins who should be banned). When you see it remove the channel ban, it will probably still be kept internally, it's just that the 'bot removed it to free up the channel ban list.

If you want the ban to be on the channel all the time, you can 'stick' it by typing .stick <banmask>, or if you want all of the bans on the channel to be in the ban list, then remove the dynamicbans setting, .chanset <chan> -dynamicbans.

Hope this helps
Webmaster, MD87.co.uk
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

About your ban-time, is in minutes not in seconds. Anyway, if you set that setting to 0 the bot will never remove them from the channel banlist.
Once the game is over, the king and the pawn go back in the same box.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Hi,

MD87
"it's just that the 'bot removed it to free up the channel ban list."
Yes I know but the fact is, the bot should not remove any ban and I don't think this is standard behavior as my bots never removed any bans in the past ... especially that there were only 6 bans in the list.

I will try what caesar suggested. Thanks for your replies.

z_one
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

It will still remove channel bans even if the channel ban list is virtually empty. By default everything is set to +dynamicbans, which...

Code: Select all

<MDbot>                        Only activate bans on the channel when necessary?
<MDbot>                        This keeps the channel's ban list from getting
<MDbot>                        excessively long. The bot still remembers every ban,
<MDbot>                        but it only activates a ban on the channel when it sees
<MDbot>                        someone join who matches that ban.
Removing this setting will stop the bans being removed from the channel ban list, as I said above
Webmaster, MD87.co.uk
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The +dynamicbans is something different, at least for this case, when the bot is removing the channel bans.
Once the game is over, the king and the pawn go back in the same box.
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

I was under the impression that he meant it was removing bans which it had set from the ban list (clarification of this point would help...).

If it's not, and it's that the bot is removing other people's bans then setting force-expire to 0, and checking to make sure there isn't a channel specific ban-time for that channel (you can have channel specific settings that override the global one) should help.
Webmaster, MD87.co.uk
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

well, as Caesar said, setting ban-time to 0 (.chanset #channel ban-time 0) will make the bot never remove any ban from the channel unless another op removes the ban. even if the ban comes from the internal ban list of the bot, the bot will not remove anybans at all if the ban-time is 0.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

I did all that and still, I get ...

[18:17] (#MyChannel) Channel ban on *!*@host.ip expired.

What can be the source of this (I replaced the channel name and the ip by generic ones for this post) ?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

are u sure u have typed .chanset #<your channel> ban-time 0 un the partyline ?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I see that you still haven't understood what is with the ban-time. The bans that are set on channel not by the bot, by the other people are not expiring, are not removed by the bot cos they are in the channel bans list. The bans from the bot's banlist that are not marked as permanent bans expire, this can be changed by making them permanent, if this is what you want, but I doubt it.
Once the game is over, the king and the pawn go back in the same box.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Yes Sir_Fz it I used .chanset to set it to 0, but I just realized that it was still set to 120 minutes in the .chan file. That's what puzzles me.
Why the change wasn't updated in the .chan file !

Yes, I understand what you mean caesar.
All the bans are expiring and are being removed by the bot.
Those placed by users and those placed by the bot.

I'm checking something right now .... I'll let you know how it turns out.

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

Post by caesar »

The channel defined in the .conf file is a static one, so the informations about that channel will be collected from there upon a .reset. Anyway, after doing the .chanset do a .chansave also to save the stuff of that channel in the chanlist file.
Once the game is over, the king and the pawn go back in the same box.
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Thanks, chansave solved my problem. :)
The "ban-time" variable is now set to 0.
Locked