Skip to content

Commit

Permalink
Wait no it was correct
Browse files Browse the repository at this point in the history
Signed-off-by: Debug <[email protected]>
  • Loading branch information
DebugOk committed Feb 20, 2024
1 parent 4e08059 commit 9af8726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Connection/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ private async Task NetMgrOnConnecting(NetConnectingArgs e)

var slots = _cfg.GetCVar(CCVars.WhitelistMinPlayers);

var nonWhitelistAllowed = slots > 0 && slots > connectedPlayers - connectedWhitelist;
var noSlotsOpen = slots > 0 && slots < connectedPlayers - connectedWhitelist;

if (nonWhitelistAllowed && await _db.GetWhitelistStatusAsync(userId) == false
if (noSlotsOpen && await _db.GetWhitelistStatusAsync(userId) == false
&& adminData is null)
{
var msg = Loc.GetString(_cfg.GetCVar(CCVars.WhitelistReason));
Expand Down

0 comments on commit 9af8726

Please sign in to comment.