From: Mario Date: Sun, 12 Feb 2017 06:42:23 +0000 (+1000) Subject: Update player's colorized name for the game log X-Git-Tag: xonotic-v0.8.2~223 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0e281586812367f4a1fd13d6ce32638f9b3059de;p=xonotic%2Fxonotic-data.pk3dir.git Update player's colorized name for the game log --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index ee8955219..8c76503bf 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1144,7 +1144,7 @@ void ClientConnect(entity this) if (IS_BOT_CLIENT(this)) PlayerStats_GameReport_AddPlayer(this); if (autocvar_sv_eventlog) - GameLogEcho(strcat(":join:", ftos(this.playerid), ":", ftos(etof(this)), ":", ((IS_REAL_CLIENT(this)) ? this.netaddress : "bot"), ":", this.netname)); + GameLogEcho(strcat(":join:", ftos(this.playerid), ":", ftos(etof(this)), ":", ((IS_REAL_CLIENT(this)) ? this.netaddress : "bot"), ":", playername(this, false))); LogTeamchange(this.playerid, this.team, 1); @@ -2236,7 +2236,7 @@ void PlayerPreThink (entity this) } if (this.netname != this.netname_previous) { if (autocvar_sv_eventlog) { - GameLogEcho(strcat(":name:", ftos(this.playerid), ":", this.netname)); + GameLogEcho(strcat(":name:", ftos(this.playerid), ":", playername(this, false))); } if (this.netname_previous) strunzone(this.netname_previous); this.netname_previous = strzone(this.netname);