From: Mario Date: Thu, 9 Apr 2015 00:32:27 +0000 (+1000) Subject: Use playerid instead of netaddress when setting a random name (player's IP should... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2f646881889eccf8a651b088395190c662fb2167;p=xonotic%2Fxonotic-data.pk3dir.git Use playerid instead of netaddress when setting a random name (player's IP should not be shown publicly) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 8c5e376ef..7e657b12e 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -2475,7 +2475,7 @@ void PlayerPreThink (void) // Savage: Check for nameless players if (isInvisibleString(self.netname)) { - string new_name = strzone(strcat("Player@", self.netaddress)); + string new_name = strzone(strcat("Player@", ftos(self.playerid))); if(autocvar_sv_eventlog) GameLogEcho(strcat(":name:", ftos(self.playerid), ":", new_name)); if(self.netname_previous)