Always return the default topic response for commands if there's no text

This commit is contained in:
Jordan Brown
2020-04-28 16:43:44 -04:00
parent 587e787246
commit f93562c8b2
+1 -1
View File
@@ -31,7 +31,7 @@
var/datum/tgs_chat_command/sc = custom_commands[command]
if(sc)
var/textResponse = sc.Run(u, params)
var/list/topic_response = list()
var/list/topic_response = TopicResponse()
if(textResponse != null)
topic_response[DMAPI5_TOPIC_RESPONSE_COMMAND_RESPONSE_MESSAGE] = textResponse
return topic_response