diff --git a/code/modules/admin/chat_commands.dm b/code/modules/admin/chat_commands.dm index ec79aaca07..d2709233e7 100644 --- a/code/modules/admin/chat_commands.dm +++ b/code/modules/admin/chat_commands.dm @@ -32,7 +32,7 @@ /datum/server_tools_command/ahelp name = "ahelp" - help_text = " |list>>" + help_text = " |list>>" required_parameters = 2 admin_only = TRUE @@ -40,6 +40,13 @@ var/list/all_params = splittext(params, " ") var/target = all_params[1] all_params.Cut(1, 2) + var/id = text2num(target) + if(id != null) + var/datum/admin_help/AH = GLOB.ahelp_tickets.TicketByID(id) + if(AH) + target = AH.initiator_ckey + else + return "Ticket #[id] not found!" return IrcPm(target, all_params.Join(" "), sender) /datum/server_tools_command/namecheck @@ -73,4 +80,4 @@ GLOBAL_LIST(round_end_notifiees) return "[sender], the round has already ended!" LAZYINITLIST(GLOB.round_end_notifiees) GLOB.round_end_notifiees[sender] = TRUE - return "I will notify [sender] when the round ends." \ No newline at end of file + return "I will notify [sender] when the round ends."