From 6cc5bf112047a9c2fb7dda80454ced1747aa057f Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Sat, 7 Nov 2020 22:34:26 +0100 Subject: [PATCH] Re adds ticket conversion via the chat link. Minor tweak to formatting --- code/controllers/subsystem/tickets/tickets.dm | 4 ++-- code/modules/admin/topic.dm | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/controllers/subsystem/tickets/tickets.dm b/code/controllers/subsystem/tickets/tickets.dm index 30c4c13166c..3c7f810ce85 100644 --- a/code/controllers/subsystem/tickets/tickets.dm +++ b/code/controllers/subsystem/tickets/tickets.dm @@ -119,8 +119,8 @@ SUBSYSTEM_DEF(tickets) L += "([ADMIN_QUE(C.mob,"?")]) ([ADMIN_PP(C.mob,"PP")]) ([ADMIN_VV(C.mob,"VV")]) ([ADMIN_TP(C.mob,"TP")]) ([ADMIN_SM(C.mob,"SM")]) " L += "([admin_jump_link(C.mob)]) (TICKET) " L += "[isAI(C.mob) ? "(CL)" : ""] (TAKE) " - L += "(RESOLVE) (AUTO) " - L += "(CONVERT) : [msg]" + L += "(RESOLVE) (AUTO) " + L += "(CONVERT) : [msg]" return L.Join() //Open a new ticket and populate details then add to the list of open tickets diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index d715bbde697..f56ec0fa7fa 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1676,6 +1676,13 @@ return SStickets.autoRespond(index) + if(href_list["convert_ticket"]) + var/indexNum = text2num(href_list["convert_ticket"]) + if(href_list["is_mhelp"]) + SSmentor_tickets.convert_to_other_ticket(indexNum) + else + SStickets.convert_to_other_ticket(indexNum) + else if(href_list["cult_mindspeak"]) var/input = stripped_input(usr, "Communicate to all the cultists with the voice of [SSticker.cultdat.entity_name]", "Voice of [SSticker.cultdat.entity_name]") if(!input)