Skip to content

Commit

Permalink
Ignore bots when connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
komashchenko committed Mar 26, 2024
1 parent 29aae5c commit f21296c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client_cvar_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ bool ClientCvarValue::OnProcessRespondCvarValue(const CCLCMsg_RespondCvarValue&

void ClientCvarValue::OnClientConnected(CPlayerSlot nSlot, const char* pszName, uint64 xuid, const char* pszNetworkID, const char* pszAddress, bool bFakePlayer)
{
SendCvarValueQueryToClient(nSlot, "cl_language", CLIENTLANGUAGEID);
SendCvarValueQueryToClient(nSlot, "engine_ostype", CLIENTOPERATINGSYSTEMID);
if (!bFakePlayer)
{
SendCvarValueQueryToClient(nSlot, "cl_language", CLIENTLANGUAGEID);
SendCvarValueQueryToClient(nSlot, "engine_ostype", CLIENTOPERATINGSYSTEMID);
}

RETURN_META(MRES_IGNORED);
}
Expand Down

0 comments on commit f21296c

Please sign in to comment.