mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +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)
|
||||
{
|
||||
if(ClientId != -1 && m_pClient->m_aClients[ClientId].m_aName[0] == '\0') // unknown client
|
||||
return;
|
||||
|
||||
char *p = const_cast<char*>(pLine);
|
||||
while(*p)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue