mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
Ignore 0 length chat messages
- There is no reason to send empty messages, and they just produced strange output anyway
This commit is contained in:
parent
24f1bfae99
commit
dfa6a44402
1 changed files with 3 additions and 0 deletions
|
@ -343,6 +343,9 @@ static void CT_ClearChatMessage ()
|
||||||
|
|
||||||
static void ShoveChatStr (const char *str, BYTE who)
|
static void ShoveChatStr (const char *str, BYTE who)
|
||||||
{
|
{
|
||||||
|
if (strlen(str) < 1) // Don't send empty messages
|
||||||
|
return;
|
||||||
|
|
||||||
FString substBuff;
|
FString substBuff;
|
||||||
|
|
||||||
if (str[0] == '/' &&
|
if (str[0] == '/' &&
|
||||||
|
|
Loading…
Reference in a new issue