From beab8047b9068c59a02168128d27a8f8728498bf Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Wed, 23 Jan 2019 23:59:07 -0800 Subject: [PATCH] Update chat_commands.dm --- code/modules/admin/chat_commands.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/admin/chat_commands.dm b/code/modules/admin/chat_commands.dm index 2916d444e5..9adfaada72 100644 --- a/code/modules/admin/chat_commands.dm +++ b/code/modules/admin/chat_commands.dm @@ -102,6 +102,15 @@ GLOBAL_LIST(round_end_notifiees) return "Query produced no output" var/list/text_res = results.Copy(1, 3) var/list/refs = results.len > 3 ? results.Copy(4) : null + if(refs) + var/list/L = list() + for(var/ref in refs) + var/atom/A = locate(ref) + if(A) + L += "[A]" + else + L += "[ref]" + refs = L . = "[text_res.Join("\n")][refs ? "\nRefs: [refs.Join(" ")]" : ""]" /datum/tgs_chat_command/reload_admins