Merge pull request #7290 from ChillerDragon/pr_quote_team_name

Teeworlds style name quoting for team joins
This commit is contained in:
Dennis Felsing 2023-10-03 11:55:37 +00:00 committed by GitHub
commit c15dfb8bd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);
}