Skip to content

Commit

Permalink
Fix a race condition in the vote kick system
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Nov 25, 2020
1 parent 070f8c1 commit 309d49f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mp/src/game/shared/sdk/sdk_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3203,6 +3203,7 @@ class CKickPlayerVoteIssue : public CDAIssue
return;
}

engine->ServerCommand(UTIL_VarArgs( "kickid %s\n", networkIDString.String() ));
engine->ServerCommand(UTIL_VarArgs( "banid 30 %s kick\n", networkIDString.String() ));
engine->ServerCommand("writeip\n");
engine->ServerCommand("writeid\n");
Expand Down

0 comments on commit 309d49f

Please sign in to comment.