Skip to content

Commit

Permalink
Stop printing bad ClientDisconnect parameter
Browse files Browse the repository at this point in the history
pszNetworkID would often times point to garbage strings
  • Loading branch information
Vauff committed May 25, 2024
1 parent 6f99830 commit d7808f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cs2fixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() : "");
Expand Down

0 comments on commit d7808f5

Please sign in to comment.