mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
send response only if it is not empty
This commit is contained in:
parent
fb332a40c0
commit
f7022565e3
1 changed files with 2 additions and 1 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue