From 2f646881889eccf8a651b088395190c662fb2167 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 9 Apr 2015 10:32:27 +1000 Subject: [PATCH] Use playerid instead of netaddress when setting a random name (player's IP should not be shown publicly) --- qcsrc/server/cl_client.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2