Put quotes around player names in leave message.

This commit is contained in:
oy 2010-09-07 01:18:06 +02:00
parent 69adb4800e
commit 3857096a20

View file

@ -96,7 +96,7 @@ void CPlayer::OnDisconnect()
if(Server()->ClientIngame(m_ClientID))
{
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "%s has left the game", Server()->ClientName(m_ClientID));
str_format(aBuf, sizeof(aBuf), "\"%s\" has left the game", Server()->ClientName(m_ClientID));
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf);
str_format(aBuf, sizeof(aBuf), "leave player='%d:%s'", m_ClientID, Server()->ClientName(m_ClientID));