From eab7fba3fad66cd9ef283050f3587ed1865fc1b2 Mon Sep 17 00:00:00 2001 From: izac112 Date: Wed, 3 Jan 2024 15:49:20 +0100 Subject: [PATCH] Revert "fix(ahelp): Makes pressing "handle" actually use webhook" This reverts commit cc6c813f6dad30d9d21652d76a01cd840e9db998. --- code/modules/admin/verbs/adminhelp.dm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index a6f44dfa2f..1d5ecdadfc 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -424,14 +424,13 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new) message_admins(msg) log_admin(msg) AddInteraction("[key_name_admin(usr)] is now handling this ticket.") - var/query_string = "type=admintake" - query_string += "&key=[url_encode(config.chat_webhook_key)]" - query_string += "&admin=[url_encode(key_name_admin(usr))]" - query_string += "&user=[url_encode(key_name(initiator))]" - world.Export("[config.chat_webhook_url]?[query_string]") - - - + SSwebhooks.send( // YW EDIT: Reverts to use SSwebhooks + WEBHOOK_AHELP_SENT, + list( + "name" = "Ticket ([id]) (Game ID: [game_id]) being handled.", + "body" = "[key_name(usr)] is now handling the ticket." + ) + ) //Show the ticket panel /datum/admin_help/proc/TicketPanel()