about summary refs log tree commit diff
path: root/src/game/server/gamecontext.cpp
diff options
context:
space:
mode:
authorFujnky <larsfunke1996@gmail.com>2010-09-05 20:18:14 +0200
committeroy <Tom_Adams@web.de>2010-09-07 01:11:20 +0200
commit69adb4800eca6fafb0754197ef5586f5a463c66b (patch)
treea401a283392b1a2538c0756554ca871a38965559 /src/game/server/gamecontext.cpp
parent0cfd1de7603c16be64df6db6315c63aea3daaceb (diff)
downloadzcatch-69adb4800eca6fafb0754197ef5586f5a463c66b.tar.gz
zcatch-69adb4800eca6fafb0754197ef5586f5a463c66b.zip
Put quotes around player names in server messages.
Diffstat (limited to 'src/game/server/gamecontext.cpp')
-rw-r--r--src/game/server/gamecontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index 1b96b812..9db02cea 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -499,7 +499,7 @@ void CGameContext::OnClientEnter(int ClientId)
 	//world.insert_entity(&players[client_id]);
 	m_apPlayers[ClientId]->Respawn();
 	char aBuf[512];
-	str_format(aBuf, sizeof(aBuf), "%s entered and joined the %s", Server()->ClientName(ClientId), m_pController->GetTeamName(m_apPlayers[ClientId]->GetTeam()));
+	str_format(aBuf, sizeof(aBuf), "\"%s\" entered and joined the %s", Server()->ClientName(ClientId), m_pController->GetTeamName(m_apPlayers[ClientId]->GetTeam()));
 	SendChat(-1, CGameContext::CHAT_ALL, aBuf); 
 
 	str_format(aBuf, sizeof(aBuf), "team_join player='%d:%s' team=%d", ClientId, Server()->ClientName(ClientId), m_apPlayers[ClientId]->GetTeam());