Skip to content

Commit dda4dd5

Browse files
committed
Actually track neglected game bans
* Track number of game bans as they were apparently forgotten and not added to the account when the user json was returned from the api. #73
1 parent 7766c9e commit dda4dd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SAM/MainWindow.xaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ private async Task ReloadAccount(Account account)
546546
account.CommunityBanned = Convert.ToBoolean(userBanJson.CommunityBanned);
547547
account.VACBanned = Convert.ToBoolean(userBanJson.VACBanned);
548548
account.NumberOfVACBans = Convert.ToInt32(userBanJson.NumberOfVACBans);
549+
account.NumberOfGameBans = Convert.ToInt32(userBanJson.NumberOfGameBans);
549550
account.DaysSinceLastBan = Convert.ToInt32(userBanJson.DaysSinceLastBan);
550551
account.EconomyBan = userBanJson.EconomyBan;
551552
}
@@ -619,6 +620,7 @@ public async Task ReloadAccountsAsync()
619620
account.CommunityBanned = Convert.ToBoolean(userBanJson.CommunityBanned);
620621
account.VACBanned = Convert.ToBoolean(userBanJson.VACBanned);
621622
account.NumberOfVACBans = Convert.ToInt32(userBanJson.NumberOfVACBans);
623+
account.NumberOfGameBans = Convert.ToInt32(userBanJson.NumberOfGameBans);
622624
account.DaysSinceLastBan = Convert.ToInt32(userBanJson.DaysSinceLastBan);
623625
account.EconomyBan = userBanJson.EconomyBan;
624626
}

0 commit comments

Comments
 (0)