mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fix old bug of auto unflag not working
fix wrong thresholds on recoil
This commit is contained in:
@ -172,14 +172,14 @@ namespace SharedLibraryCore.Services
|
||||
{
|
||||
var now = DateTime.UtcNow;
|
||||
|
||||
Expression<Func<EFPenalty, bool>> filter = (p) => new EFPenalty.PenaltyType[]
|
||||
Expression<Func<EFPenalty, bool>> filter = (p) => (new EFPenalty.PenaltyType[]
|
||||
{
|
||||
EFPenalty.PenaltyType.TempBan,
|
||||
EFPenalty.PenaltyType.Ban,
|
||||
EFPenalty.PenaltyType.Flag
|
||||
EFPenalty.PenaltyType.Ban
|
||||
}.Contains(p.Type) &&
|
||||
p.Active &&
|
||||
(p.Expires == null || p.Expires > now);
|
||||
(p.Expires == null || p.Expires > now)) ||
|
||||
(p.Type ==EFPenalty.PenaltyType.Flag && p.Active);
|
||||
|
||||
using (var context = new DatabaseContext(true))
|
||||
{
|
||||
|
Reference in New Issue
Block a user