mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Hide empty broadcast messages.
This commit is contained in:
parent
63c1d75458
commit
191f0e7f3d
|
@ -56,7 +56,8 @@ void CBroadcast::OnMessage(int MsgType, void *pRawMsg)
|
|||
{
|
||||
aBuf[ii] = '\0';
|
||||
ii = 0;
|
||||
m_pClient->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "broadcast", aBuf, true);
|
||||
if (aBuf[0])
|
||||
m_pClient->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "broadcast", aBuf, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -65,7 +66,8 @@ void CBroadcast::OnMessage(int MsgType, void *pRawMsg)
|
|||
}
|
||||
}
|
||||
aBuf[ii] = '\0';
|
||||
m_pClient->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "broadcast", aBuf, true);
|
||||
if (aBuf[0])
|
||||
m_pClient->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "broadcast", aBuf, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue