Hide empty broadcast messages.

This commit is contained in:
Valentin Lorentz 2017-05-20 13:59:39 +02:00
parent 63c1d75458
commit 191f0e7f3d

View file

@ -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);
}
}
}