Easier banning of DC'd players. (#28032)

* Easier banning of DC'd players.

* Make bans work on new players (still on start screen).

* More accurate messaging
This commit is contained in:
Charlie Nolan
2025-01-26 05:46:22 -08:00
committed by GitHub
parent 34f3823923
commit 509e7955c1
4 changed files with 55 additions and 52 deletions
+2 -2
View File
@@ -1,6 +1,7 @@
//handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying
//handles setting last_known_ckey, lastKnownIP, and computer_id for use by the ban systems as well as checking for multikeying
/mob/proc/update_Login_details()
//Multikey checks and logging
last_known_ckey = ckey
lastKnownIP = client.address
computer_id = client.computer_id
log_access_in(client)
@@ -31,7 +32,6 @@
/mob/Login()
GLOB.player_list |= src
last_known_ckey = ckey
update_Login_details()
world.update_status()
@@ -1,5 +1,5 @@
/mob/new_player/Login()
update_Login_details() //handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying
update_Login_details() //handles setting last_known_ckey, lastKnownIP, and computer_id for use by the ban systems as well as checking for multikeying
if(GLOB.join_motd)
to_chat(src, "<div class='motd'>[GLOB.join_motd]</div>")