Support chat message queuing from chat commands.

This commit is contained in:
Dominion
2023-04-03 12:29:16 -04:00
parent 2ef30b2290
commit 28571bd056
5 changed files with 34 additions and 18 deletions
+1 -1
View File
@@ -1 +1 @@
"5.4.0"
"5.5.0"
+3
View File
@@ -129,9 +129,12 @@
switch(command)
if(DMAPI5_TOPIC_COMMAND_CHAT_COMMAND)
intercepted_message_queue = list()
var/result = HandleCustomCommand(topic_parameters[DMAPI5_TOPIC_PARAMETER_CHAT_COMMAND])
if(!result)
result = TopicResponse("Error running chat command!")
result[DMAPI5_TOPIC_RESPONSE_CHAT_RESPONSES] = intercepted_message_queue
intercepted_message_queue = null
return result
if(DMAPI5_TOPIC_COMMAND_EVENT_NOTIFICATION)
intercepted_message_queue = list()