Skip to content

Commit

Permalink
admin reply fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Sep 7, 2024
1 parent 06f2ec3 commit dfe5291
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/game/machinery/ARES/ARES_interface_admin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
datacore.records_talking += convo

if("clear_conversation")
var/datum/ares_record/talk_log/conversation = locate(params["active_convo"])
var/datum/ares_record/talk_log/conversation = locate(params["local_active_convo"])
if(!istype(conversation))
return FALSE
var/datum/ares_record/deleted_talk/deleted = new
Expand All @@ -194,12 +194,12 @@
if("fake_message_ares")
var/message = tgui_input_text(user, "What do you wish to say to ARES?", "ARES Message", encode = FALSE)
if(message)
interface.message_ares(message, user, params["active_convo"], TRUE)
interface.message_ares(message, user, params["local_active_convo"], TRUE)
if("ares_reply")
var/message = tgui_input_text(user, "What do you wish to reply with?", "ARES Response", encode = FALSE)
if(message)
interface.response_from_ares(message, params["active_convo"])
var/datum/ares_record/talk_log/conversation = locate(params["active_convo"])
interface.response_from_ares(message, params["local_active_convo"])
var/datum/ares_record/talk_log/conversation = locate(params["local_active_convo"])
if(!istype(conversation))
return FALSE
var/admin_log = SPAN_STAFF_IC("<b>ADMINS/MODS: [SPAN_RED("[key_name(user)] replied to [conversation.user]'s ARES message")] [SPAN_GREEN("via Remote Interface")] with: [SPAN_BLUE(message)] </b>")
Expand Down

0 comments on commit dfe5291

Please sign in to comment.