Skip to content

Commit

Permalink
check for priv account for non prime users
Browse files Browse the repository at this point in the history
Signed-off-by: jithatsonei <[email protected]>
  • Loading branch information
jithatsonei authored Apr 22, 2024
1 parent becc475 commit e02e67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KitsuneSteamRestrict.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private bool IsRestrictionViolated(CCSPlayerController player, SteamUserInfo use
(!isPrime, Config.MinimumLevelNonPrime, userInfo.SteamLevel),
(!isPrime, Config.MinimumCS2LevelNonPrime, userInfo.CS2Level),
(!isPrime, Config.MinimumSteamAccountAgeInDays, (DateTime.Now - userInfo.SteamAccountAge).TotalDays),
(Config.BlockPrivateProfile, 1, userInfo.IsPrivate ? 0 : 1),
(!isPrime, 1, userInfo.IsPrivate ? 0 : 1),
(Config.BlockTradeBanned, 1, userInfo.IsTradeBanned ? 0 : 1),
(Config.BlockGameBanned, 1, userInfo.IsGameBanned ? 0 : 1),
(!string.IsNullOrEmpty(Config.SteamGroupID), 1, userInfo.IsInSteamGroup ? 0 : 1),
Expand Down

0 comments on commit e02e67a

Please sign in to comment.