diff --git a/code/modules/admin/sql_message_system.dm b/code/modules/admin/sql_message_system.dm index 114772dda88..f0f18ea6201 100644 --- a/code/modules/admin/sql_message_system.dm +++ b/code/modules/admin/sql_message_system.dm @@ -102,8 +102,7 @@ if(logged) log_admin_private(pm) message_admins("[header]:
[text]") - admin_ticket_log(target_ckey, "[header]") - admin_ticket_log(target_ckey, text) + admin_ticket_log(target_ckey, "[header]
[text]") if(browse) browse_messages("[type]") else diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index 22a583bca4a..18c5701cd69 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -667,7 +667,9 @@ GLOBAL_DATUM_INIT(admin_help_ui_handler, /datum/admin_help_ui_handler, new) //Use this proc when an admin takes action that may be related to an open ticket on what //what can be a client, ckey, or mob -/proc/admin_ticket_log(what, message) +//log_in_blackbox: Whether or not this message with the blackbox system. +//If disabled, this message should be logged with a different proc call +/proc/admin_ticket_log(what, message, log_in_blackbox = TRUE) var/client/C var/mob/Mob = what if(istype(Mob)) @@ -676,11 +678,15 @@ GLOBAL_DATUM_INIT(admin_help_ui_handler, /datum/admin_help_ui_handler, new) C = what if(istype(C) && C.current_ticket) C.current_ticket.AddInteraction(message) + if(log_in_blackbox) + SSblackbox.LogAhelp(C.current_ticket.id, "Interaction", message, C.ckey, usr.ckey) return C.current_ticket if(istext(what)) //ckey var/datum/admin_help/AH = GLOB.ahelp_tickets.CKey2ActiveTicket(what) if(AH) AH.AddInteraction(message) + if(log_in_blackbox) + SSblackbox.LogAhelp(AH.id, "Interaction", message, what, usr.ckey) return AH // diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index e1a0bd33fdb..0fb00e2ec69 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -235,13 +235,13 @@ confidential = TRUE) //omg this is dumb, just fill in both their tickets var/interaction_message = "PM from-[key_name(src, recipient, 1)] to-[key_name(recipient, src, 1)]: [keywordparsedmsg]" - admin_ticket_log(src, interaction_message) + admin_ticket_log(src, interaction_message, log_in_blackbox = FALSE) if(recipient != src) //reeee - admin_ticket_log(recipient, interaction_message) + admin_ticket_log(recipient, interaction_message, log_in_blackbox = FALSE) SSblackbox.LogAhelp(current_ticket.id, "Reply", msg, recipient.ckey, src.ckey) else //recipient is an admin but sender is not var/replymsg = "Reply PM from-[key_name(src, recipient, 1)]: [keywordparsedmsg]" - admin_ticket_log(src, "[replymsg]") + admin_ticket_log(src, "[replymsg]", log_in_blackbox = FALSE) to_chat(recipient, type = MESSAGE_TYPE_ADMINPM, html = span_danger("[replymsg]"), @@ -280,7 +280,7 @@ html = span_notice("Admin PM to-[key_name(recipient, src, 1)]: [msg]"), confidential = TRUE) - admin_ticket_log(recipient, "PM From [key_name_admin(src)]: [keywordparsedmsg]") + admin_ticket_log(recipient, "PM From [key_name_admin(src)]: [keywordparsedmsg]", log_in_blackbox = FALSE) if(!already_logged) //Reply to an existing ticket SSblackbox.LogAhelp(recipient.current_ticket.id, "Reply", msg, recipient.ckey, src.ckey) @@ -410,7 +410,7 @@ html = span_adminsay("Click on the administrator's name to reply."), confidential = TRUE) - admin_ticket_log(C, "PM From [tgs_tagged]: [msg]") + admin_ticket_log(C, "PM From [tgs_tagged]: [msg]", log_in_blackbox = FALSE) window_flash(C, ignorepref = TRUE) //always play non-admin recipients the adminhelp sound