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")
+