mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 09:02:41 +01:00
Always return the default topic response for commands if there's no text
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user