diff --git a/code/modules/admin/verbs/adminpm.dm b/code/modules/admin/verbs/adminpm.dm index 0abf2ca6f8e..f553fa3dc49 100644 --- a/code/modules/admin/verbs/adminpm.dm +++ b/code/modules/admin/verbs/adminpm.dm @@ -450,6 +450,20 @@ // Ok by this point the recipient has to be an admin, and this is either an admin on admin event, or a player replying to an admin + // You're replying to a ticket that is closed. Bad move. You must have started replying before the close, and then got input()'d + // Lets be nice and pass this off to a new ticket, as we recomend above + if(!ticket) + to_chat(src, + type = MESSAGE_TYPE_ADMINPM, + html = span_danger("Error: Admin-PM-Send: Attempted to send a reply to a closed ticket."), + confidential = TRUE) + to_chat(src, + type = MESSAGE_TYPE_ADMINPM, + html = span_notice("Relaying message to a new admin help."), + confidential = TRUE) + GLOB.admin_help_ui_handler.perform_adminhelp(src, raw_message, FALSE) + return FALSE + // Let's play some music for the admin, only if they want it tho if(sound_prefs & SOUND_ADMINHELP) SEND_SOUND(recipient, sound('sound/effects/adminhelp.ogg'))