From dfa6a44402bcd8a4ae47c9e1fa68c3ed68b6a3ef Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Tue, 23 Dec 2014 22:38:12 +1300 Subject: [PATCH] Ignore 0 length chat messages - There is no reason to send empty messages, and they just produced strange output anyway --- src/ct_chat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ct_chat.cpp b/src/ct_chat.cpp index c0b73d3c0..10ff2bffb 100644 --- a/src/ct_chat.cpp +++ b/src/ct_chat.cpp @@ -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] == '/' &&