mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
clean up log reader/make it output more useful message if things go wrong
add unflag as a penalty show bans/tempbans even after they've expired on penalty list continue making alias links great again
This commit is contained in:
@ -14,6 +14,7 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using static SharedLibraryCore.Objects.Penalty;
|
||||
using static SharedLibraryCore.Server;
|
||||
|
||||
namespace SharedLibraryCore
|
||||
@ -478,6 +479,15 @@ namespace SharedLibraryCore
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
public static bool ShouldPenaltyApplyToAllProfiles(this PenaltyType penaltyType)
|
||||
{
|
||||
return penaltyType == PenaltyType.Ban ||
|
||||
penaltyType == PenaltyType.Unban ||
|
||||
penaltyType == PenaltyType.Flag ||
|
||||
penaltyType == PenaltyType.Unflag ||
|
||||
penaltyType == PenaltyType.TempBan;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper extension that determines if a user is a privileged client
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user