From 73d526c797f4cd7003d3e1a794abf57de197a800 Mon Sep 17 00:00:00 2001 From: san7890 Date: Wed, 29 Nov 2023 08:27:03 -0700 Subject: [PATCH] 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. --- 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 @@ - +