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.

Format of ban lines in .user file

General support and discussion of Eggdrop bots.
Post Reply
L
LimeyTX
Voice
Posts: 19
Joined: Wed Jun 29, 2011 6:06 pm

Format of ban lines in .user file

Post by LimeyTX »

The format of a ban line in the user file appears to be as follows:

hostmask:+0[*]:+date1:date2:op:reason

As far as I can tell the optional * appears to indicate that the ban is sticky.

Could someone confirm this, please.

What are the uses of date1 and date2. I'm assuming one is date last used. But date2 is sometimes 0.

Help and explanation welcomed.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Do a .bans in DCC Chat/Telnet and interpret what you see in there with what you can read from the file.
Once the game is over, the king and the pawn go back in the same box.
L
LimeyTX
Voice
Posts: 19
Joined: Wed Jun 29, 2011 6:06 pm

Post by LimeyTX »

Thanks for responding. I did that and some bans have "Created NN days ago, last used YY days ago. " Sometimes the last used is missing. Does that mean it was never used?

But that is a good start, thanks.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

LimeyTX wrote:... Sometimes the last used is missing. Does that mean it was never used?
...
Until somebody comes along with a definitive answer, and if you want to research it some more yourself - here's a couple more ideas:

First, go here:
http://docs.eggheads.org/mainDocs/tcl-commands.html
and text search to find:
banlist [channel]
and read the description there.
From reading that, I think the answer to your above quoted question is, Yes.

Next:
Put your bot in some temp channel so you can experiment without bothering anyone, or being bothered by anyone.
Use the .+ban command in the partyline to create a ban.
(you can use: .tcl banlist #channelName in the partyline to see the ban, and see how it corresponds to what is found in tcl-commands.doc )

Join the channel, using a hostmask that matches the ban, such that it triggers the bot to enforce the ban.

Do: .tcl banlist #channelName again. Did that zero change to a unixtime number?
I think it will....
Do: .tcl ctime <that unixtime numer here>
and does it give you the time that the ban was enforced?
Do it a couple times, checking every time.
You'll probably prove it, and thus have your answer.

Note: for the .tcl command to work for you in the partyline, you must have it enabled for your (owner's) use in eggdrop.conf .

I hope this helps.
Last edited by willyw on Mon Dec 03, 2018 10:38 am, edited 2 times in total.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Somehow this thread is in:
Modules & Programming

If an admin sees this - would this thread be better off if it was moved to
Eggdrop Help
?

Thanks.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
L
LimeyTX
Voice
Posts: 19
Joined: Wed Jun 29, 2011 6:06 pm

Post by LimeyTX »

I placed it in Modules & Programming because I had searched the documentation and found no help so I figured that the people who maintained the code would have a better idea. After all, the .user file is not normally read by end users and so wouldn't normally appear in documentation.
Post Reply