| View previous topic :: View next topic |
| Author |
Message |
LimeyTX Voice
Joined: 29 Jun 2011 Posts: 19
|
Posted: Mon Dec 03, 2018 1:46 am Post subject: Format of ban lines in .user file |
|
|
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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Dec 03, 2018 2:03 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
LimeyTX Voice
Joined: 29 Jun 2011 Posts: 19
|
Posted: Mon Dec 03, 2018 2:15 am Post subject: |
|
|
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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Mon Dec 03, 2018 10:28 am Post subject: |
|
|
| 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 |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Mon Dec 03, 2018 10:30 am Post subject: |
|
|
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 |
|
 |
LimeyTX Voice
Joined: 29 Jun 2011 Posts: 19
|
Posted: Mon Dec 03, 2018 10:59 am Post subject: |
|
|
| 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 |
|
 |
|