fixed chat message with missing name (#110)

This commit is contained in:
Choupom 2010-09-06 12:32:41 +02:00 committed by oy
parent 532ea85aeb
commit 71109a98fb

View file

@ -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)
{ {