[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 <the@san7890.com>
This commit is contained in:
SkyratBot
2022-07-08 21:27:43 +02:00
committed by GitHub
parent 3c89f905f4
commit 6d77e1f5d7
+2 -2
View File
@@ -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