mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #6979 from edg-l/pr_fix_empty
don't send empty chat messages
This commit is contained in:
commit
11105762d1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue