From d7808f5ce224a2eb4e74cbe07dd344a5be7a1f3e Mon Sep 17 00:00:00 2001 From: Vauff Date: Sat, 25 May 2024 15:14:40 -0400 Subject: [PATCH] Stop printing bad ClientDisconnect parameter pszNetworkID would often times point to garbage strings --- src/cs2fixes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cs2fixes.cpp b/src/cs2fixes.cpp index 94ffc5c6..de2f660b 100644 --- a/src/cs2fixes.cpp +++ b/src/cs2fixes.cpp @@ -714,7 +714,7 @@ void CS2Fixes::Hook_ClientPutInServer( CPlayerSlot slot, char const *pszName, in void CS2Fixes::Hook_ClientDisconnect( CPlayerSlot slot, ENetworkDisconnectionReason reason, const char *pszName, uint64 xuid, const char *pszNetworkID ) { - Message( "Hook_ClientDisconnect(%d, %d, \"%s\", %lli, \"%s\")\n", slot, reason, pszName, xuid, pszNetworkID ); + Message( "Hook_ClientDisconnect(%d, %d, \"%s\", %lli)\n", slot, reason, pszName, xuid ); ZEPlayer* pPlayer = g_playerManager->GetPlayer(slot); g_pAdminSystem->AddDisconnectedPlayer(pszName, xuid, pPlayer ? pPlayer->GetIpAddress() : "");