[MIRROR] Adds a way to check related accounts by CID or IP in game (#863)
* Adds a way to check related accounts by CID or IP in game * resolve rej
This commit is contained in:
committed by
Poojawa
parent
70bc9e0e17
commit
2ee5ff82a2
@@ -2242,4 +2242,20 @@
|
||||
if(href_list["viewruntime_backto"])
|
||||
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"])
|
||||
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"])]:<br>"
|
||||
for(var/thing in thing_to_check)
|
||||
dat += "[thing]<br>"
|
||||
|
||||
usr << browse(dat, "size=420x300")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user