From 71109a98fbcb753e8ab064099e4a2d8dc671481b Mon Sep 17 00:00:00 2001 From: Choupom Date: Mon, 6 Sep 2010 12:32:41 +0200 Subject: fixed chat message with missing name (#110) --- src/game/client/components/chat.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/client/components/chat.cpp') diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index d082bf78..60b62188 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -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(pLine); while(*p) { -- cgit 1.4.1