From ccb3a86a84fc67c109e9964343961008463aa3e1 Mon Sep 17 00:00:00 2001 From: Lzimann Date: Thu, 8 Jun 2017 10:42:08 -0300 Subject: [PATCH 1/2] Fix related CID/IPs on player panel --- code/modules/admin/admin.dm | 4 ++-- code/modules/admin/topic.dm | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index aac82542bcb..7bb23b6d481 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -39,7 +39,7 @@ if(M.client) body += "
\[First Seen: [M.client.player_join_date]\]\[Byond account registered on: [M.client.account_join_date]\]" - body += "
Show related accounts by: " + body += "

Show related accounts by: " body += "\[ CID | " body += "IP \]" @@ -434,7 +434,7 @@ if("Hard Restart (No Delay, No Feeback Reason)") world.Reboot() if("Hardest Restart (No actions, just reboot)") - world.Reboot(fast_track = TRUE) + world.Reboot(fast_track = TRUE) if("Service Restart (Force restart DD)") GLOB.reboot_mode = REBOOT_MODE_HARD world.ServiceReboot() diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 4a9c8368961..7e17a279579 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2240,7 +2240,7 @@ else if(href_list["showrelatedacc"]) var/client/C = locate(href_list["client"]) in GLOB.clients - var/list/thing_to_check + var/thing_to_check if(href_list["showrelatedacc"] == "cid") thing_to_check = C.related_accounts_cid else @@ -2248,9 +2248,7 @@ thing_to_check = splittext(thing_to_check, ", ") - var/dat = "Related accounts by [uppertext(href_list["showrelatedacc"])]:
" - for(var/thing in thing_to_check) - dat += "[thing]
" + var/list/dat = list("Related accounts by [uppertext(href_list["showrelatedacc"])]:", thing_to_check) - usr << browse(dat, "size=420x300") + usr << browse(dat.Join("
"), "window=related_[C];size=420x300") From 4a693b209a3a020d9ca039a8042a7e5b38f2f80f Mon Sep 17 00:00:00 2001 From: Lzimann Date: Thu, 8 Jun 2017 11:12:11 -0300 Subject: [PATCH 2/2] Byond is stupid sometimes --- code/modules/admin/topic.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 7e17a279579..7c6aa721cac 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2248,7 +2248,8 @@ thing_to_check = splittext(thing_to_check, ", ") - var/list/dat = list("Related accounts by [uppertext(href_list["showrelatedacc"])]:", thing_to_check) + var/list/dat = list("Related accounts by [uppertext(href_list["showrelatedacc"])]:") + dat += thing_to_check usr << browse(dat.Join("
"), "window=related_[C];size=420x300")