mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Put quotes around player names in leave message.
This commit is contained in:
parent
69adb4800e
commit
3857096a20
|
@ -96,7 +96,7 @@ void CPlayer::OnDisconnect()
|
||||||
if(Server()->ClientIngame(m_ClientID))
|
if(Server()->ClientIngame(m_ClientID))
|
||||||
{
|
{
|
||||||
char aBuf[512];
|
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);
|
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
||||||
|
|
||||||
str_format(aBuf, sizeof(aBuf), "leave player='%d:%s'", m_ClientID, Server()->ClientName(m_ClientID));
|
str_format(aBuf, sizeof(aBuf), "leave player='%d:%s'", m_ClientID, Server()->ClientName(m_ClientID));
|
||||||
|
|
Loading…
Reference in a new issue