send response only if it is not empty

This commit is contained in:
in0finite 2021-02-22 15:48:47 +01:00
parent fb332a40c0
commit f7022565e3

View file

@ -41,7 +41,8 @@ namespace SanAndreasUnity.Chat
}
// send response back to player
ChatManager.SendChatMessageToPlayer(player, response);
if (!string.IsNullOrWhiteSpace(response))
ChatManager.SendChatMessageToPlayer(player, response);
// discard chat message
return new ChatPreprocessorResult {shouldBeDiscarded = true};