mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
prevent privileged client from being flagged when reported
fix issue with enum parsing on finding client
This commit is contained in:
@ -334,7 +334,7 @@ namespace IW4MAdmin
|
||||
int reportNum = await Manager.GetClientService().GetClientReportCount(E.Target.ClientId);
|
||||
bool isAutoFlagged = await Manager.GetClientService().IsAutoFlagged(E.Target.ClientId);
|
||||
|
||||
if (reportNum >= REPORT_FLAG_COUNT && !isAutoFlagged)
|
||||
if (!E.Target.IsPrivileged() && reportNum >= REPORT_FLAG_COUNT && !isAutoFlagged)
|
||||
{
|
||||
E.Target.Flag(Utilities.CurrentLocalization.LocalizationIndex["SERVER_AUTO_FLAG_REPORT"].FormatExt(reportNum), Utilities.IW4MAdminClient(E.Owner));
|
||||
}
|
||||
|
Reference in New Issue
Block a user