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:
Edward Richardson 2014-12-23 22:38:12 +13:00
parent 24f1bfae99
commit dfa6a44402

View file

@ -343,6 +343,9 @@ static void CT_ClearChatMessage ()
static void ShoveChatStr (const char *str, BYTE who)
{
if (strlen(str) < 1) // Don't send empty messages
return;
FString substBuff;
if (str[0] == '/' &&