From 63c42d4539877c30b4e40351d5a2792ef3ce3f7f Mon Sep 17 00:00:00 2001 From: Lzimann Date: Sat, 6 May 2017 22:14:08 -0300 Subject: [PATCH] Adds a way to check related accounts by CID or IP in game --- code/modules/admin/admin.dm | 3 +++ code/modules/admin/topic.dm | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 13f7c799a5b..16a6386a36a 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -39,6 +39,9 @@ if(M.client) body += "
\[Player Age: [M.client.player_age]\]\[Byond Age: [M.client.account_age]\]" + body += "
Show related accounts by: " + body += "\[ CID | " + body += "IP \]" body += "

\[ " diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index a126dbb225f..98c26857a25 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2243,3 +2243,20 @@ error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"]) else error_viewer.show_to(owner, null, href_list["viewruntime_linear"]) + + else if(href_list["showrelatedacc"]) + var/client/C = locate(href_list["client"]) in GLOB.clients + var/list/thing_to_check + if(href_list["showrelatedacc"] == "cid") + thing_to_check = C.related_accounts_cid + else + thing_to_check = C.related_accounts_ip + 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]
" + + usr << browse(dat, "size=420x300") +