From 6f9732a4c88d0e106fe81b8d37acdd964fd1e816 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 29 Nov 2023 22:02:41 +0100 Subject: [PATCH] [MIRROR] Adds `localhost` case to the Player Panel [MDB IGNORE] (#25333) * Adds `localhost` case to the Player Panel (#79999) ## About The Pull Request ![image](https://github.com/tgstation/tgstation/assets/34697715/2fd2b8fd-dc86-4150-8f0f-b8ac6a5dc03c) This always confused me debugging on local, the thing in the parenthesis is supposed to the be the IP Address of the client currently in the mob. However, local hosts have a `null` IP Address (BYOND thing). So, let's add handling to this so this little thing won't be so confusing anymore ## Why It's Good For The Game ![image](https://github.com/tgstation/tgstation/assets/34697715/b365e107-cfcf-497c-92da-f5930666cbb0) Better. ## Changelog Not really relevant. * Adds `localhost` case to the Player Panel --------- Co-authored-by: san7890 --- code/modules/admin/player_panel.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index f412f9d5a72..6f6f72af472 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -274,6 +274,8 @@ else M_job = "Ghost" + var/M_ip_address = isnull(M.lastKnownIP) ? "+localhost+" : M.lastKnownIP + var/M_name = html_encode(M.name) var/M_rname = html_encode(M.real_name) var/M_rname_as_key = html_encode(ckey(M.real_name)) // so you can ignore punctuation @@ -304,7 +306,7 @@ - +