mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7290 from ChillerDragon/pr_quote_team_name
Teeworlds style name quoting for team joins
This commit is contained in:
commit
c15dfb8bd9
|
@ -1083,7 +1083,7 @@ void CGameContext::ConJoinTeam(IConsole::IResult *pResult, void *pUserData)
|
|||
else
|
||||
{
|
||||
char aBuf[512];
|
||||
str_format(aBuf, sizeof(aBuf), "%s joined team %d",
|
||||
str_format(aBuf, sizeof(aBuf), "'%s' joined team %d",
|
||||
pSelf->Server()->ClientName(pPlayer->GetCID()),
|
||||
Team);
|
||||
pSelf->SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
||||
|
|
|
@ -657,7 +657,7 @@ void CGameTeams::OnTeamFinish(CPlayer **Players, unsigned int Size, float Time,
|
|||
{
|
||||
SetForceCharacterTeam(Players[i]->GetCID(), TEAM_FLOCK);
|
||||
char aBuf[512];
|
||||
str_format(aBuf, sizeof(aBuf), "%s joined team 0",
|
||||
str_format(aBuf, sizeof(aBuf), "'%s' joined team 0",
|
||||
GameServer()->Server()->ClientName(Players[i]->GetCID()));
|
||||
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue