mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed chat message with missing name (#110)
This commit is contained in:
parent
532ea85aeb
commit
71109a98fb
|
@ -126,6 +126,9 @@ void CChat::OnMessage(int MsgType, void *pRawMsg)
|
||||||
|
|
||||||
void CChat::AddLine(int ClientId, int Team, const char *pLine)
|
void CChat::AddLine(int ClientId, int Team, const char *pLine)
|
||||||
{
|
{
|
||||||
|
if(ClientId != -1 && m_pClient->m_aClients[ClientId].m_aName[0] == '\0') // unknown client
|
||||||
|
return;
|
||||||
|
|
||||||
char *p = const_cast<char*>(pLine);
|
char *p = const_cast<char*>(pLine);
|
||||||
while(*p)
|
while(*p)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue