From 6d77e1f5d71e5d0c8a1df988e5f21a04f5dc6e3e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:27:43 +0200 Subject: [PATCH] [MIRROR] Adds the Ticket #ID To AdminPM Logs [MDB IGNORE] (#14801) * Adds the Ticket #ID To AdminPM Logs (#68215) Hey there, Statbus has been broken for 2 months+, and what I've been doing when I need to reference a ticket is to go into the raw-logs and parse it for the involved CKey. However, you tend to get a lot of noise searching for the signal when you filter in Notepad++, so I decided today would be a good day to have the Ticket #ID in all associated AdminPMs (which are already logged in ADMINPRIVATE). * Adds the Ticket #ID To AdminPM Logs Co-authored-by: san7890 --- code/modules/admin/verbs/adminpm.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index 3142d264745..1f3ab61a91a 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -310,7 +310,7 @@ current_ticket.MessageNoRecipient(msg) if(external) - log_admin_private("PM: [key_name(src)]->External: [rawmsg]") + log_admin_private("PM: Ticket #[current_ticket.id]: [key_name(src)]->External: [rawmsg]") for(var/client/X in GLOB.admins) to_chat(X, type = MESSAGE_TYPE_ADMINPM, @@ -318,7 +318,7 @@ confidential = TRUE) else window_flash(recipient, ignorepref = TRUE) - log_admin_private("PM: [key_name(src)]->[key_name(recipient)]: [rawmsg]") + log_admin_private("PM: Ticket #[current_ticket.id]: [key_name(src)]->[key_name(recipient)]: [rawmsg]") //we don't use message_admins here because the sender/receiver might get it too for(var/client/X in GLOB.admins) if(X.key!=key && X.key!=recipient.key) //check client/X is an admin and isn't the sender or recipient