1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-16 10:09:14 -05:00

Display mute penalties on profile

Expire mute penalties on unmute
This commit is contained in:
Amos
2022-10-21 21:36:10 +01:00
committed by RaidMax
parent fe08463e2c
commit 34da216f95
6 changed files with 50 additions and 19 deletions

View File

@ -131,7 +131,7 @@ namespace SharedLibraryCore.Services
}
private static readonly EFPenalty.PenaltyType[] LinkedPenalties =
{ EFPenalty.PenaltyType.Ban, EFPenalty.PenaltyType.Flag, EFPenalty.PenaltyType.TempBan };
{ EFPenalty.PenaltyType.Ban, EFPenalty.PenaltyType.Flag, EFPenalty.PenaltyType.TempBan, EFPenalty.PenaltyType.TempMute, EFPenalty.PenaltyType.Mute };
private static readonly Expression<Func<EFPenalty, bool>> Filter = p =>
LinkedPenalties.Contains(p.Type) && p.Active && (p.Expires == null || p.Expires > DateTime.UtcNow);