Why do we do it like this?
#1

Why do we load the ban files from one large file? Why not just make a folder called /bans/, and every time a person gets banned, a file is created (IP.cfg).
In this file, we would have this:
Код:
Names = 
BanDate =
UnbanDate = 
Reason =
For example, if someone was banned for 1 day for being rude to admins, and when they were banned, they logged in (from the same IP) with a different name, it would look like this:
(The person was banned on "JohnnyA" and then evaded on JohnnyB")
Код:
Names = JohnnyA, JohnnyB
BanDate = 29/01/2014
UnbanDate = 30/01/2014
Reason = Rudeness/insults to admins
You could then use a byte searcher to scan through the files for the name (for example, they log into JohnnyA from a different IP), and then create a new file like this:
Код:
Names = JohnnyA
BanDate = 29/01/2014
UnbanDate = 0
Reason = Evasion: Rudeness/insults to admins
And so on.
Reply


Messages In This Thread
Why do we do it like this? - by jameskmonger - 11.06.2010, 20:31
Re: Why do we do it like this? - by TheInnocentOne - 11.06.2010, 20:41
Re: Why do we do it like this? - by jameskmonger - 11.06.2010, 20:42
Re: Why do we do it like this? - by jameskmonger - 13.06.2010, 06:02
Re: Why do we do it like this? - by DJDhan - 13.06.2010, 06:15
Re: Why do we do it like this? - by cessil - 13.06.2010, 06:28
Re: Why do we do it like this? - by jameskmonger - 13.06.2010, 06:29
Re: Why do we do it like this? - by DJDhan - 13.06.2010, 06:30
Re: Why do we do it like this? - by jameskmonger - 13.06.2010, 06:32
Re: Why do we do it like this? - by TheInnocentOne - 13.06.2010, 07:47

Forum Jump:


Users browsing this thread: 1 Guest(s)