Connection Logging Overhaul (#18101)

* Connection Logging Overhaul

Changes how/where the connections are logged to the database

* Add logging of admin bypass connections

* Rebase to latest master

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Werner
2024-01-06 15:16:58 +00:00
committed by GitHub
co-authored by Werner
parent 9c18c99c37
commit f68f33da5e
6 changed files with 100 additions and 10 deletions
+1 -1
View File
@@ -43,7 +43,7 @@
c.authed = TRUE // We declare client as authed now
c.prefs = null //Null them so we can load them from the db again for the correct ckey
// Check for bans
var/list/ban_data = world.IsBanned(ckey(newkey), c.address, c.computer_id, 1, TRUE)
var/list/ban_data = world.IsBanned(ckey(newkey), c.address, c.computer_id, 1, real_bans_only = TRUE, log_connection = TRUE)
if(ban_data)
to_chat_immediate(c, "You are banned for this server.")
to_chat_immediate(c, "Reason: [ban_data["reason"]]")