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 

Format of ban lines in .user file

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


Joined: 29 Jun 2011
Posts: 11

PostPosted: Mon Dec 03, 2018 1:46 am    Post subject: Format of ban lines in .user file Reply with quote

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.
Back to top
View user's profile Send private message
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3516
Location: Top Secret

PostPosted: Mon Dec 03, 2018 2:03 am    Post subject: Reply with quote

Do a .bans in DCC Chat/Telnet and interpret what you see in there with what you can read from the file.
_________________
You may say anything about me, but at least don't misspell my name. xD
Back to top
View user's profile Send private message
LimeyTX
Voice


Joined: 29 Jun 2011
Posts: 11

PostPosted: Mon Dec 03, 2018 2:15 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 975

PostPosted: Mon Dec 03, 2018 10:28 am    Post subject: Reply with quote

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.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !


Last edited by willyw on Mon Dec 03, 2018 10:38 am; edited 2 times in total
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 975

PostPosted: Mon Dec 03, 2018 10:30 am    Post subject: Reply with quote

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 !
Back to top
View user's profile Send private message
LimeyTX
Voice


Joined: 29 Jun 2011
Posts: 11

PostPosted: Mon Dec 03, 2018 10:59 am    Post subject: Reply with quote

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.
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