Merge pull request #6979 from edg-l/pr_fix_empty

don't send empty chat messages
This commit is contained in:
Robert Müller 2023-08-07 15:49:23 +00:00 committed by GitHub
commit 11105762d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1195,6 +1195,10 @@ void CChat::OnRender()
void CChat::Say(int Team, const char *pLine)
{
// don't send empty messages
if(*str_utf8_skip_whitespaces(pLine) == '\0')
return;
m_LastChatSend = time();
// send chat message