diff --git a/Application/IW4MServer.cs b/Application/IW4MServer.cs index 25a055d39..5db76cd04 100644 --- a/Application/IW4MServer.cs +++ b/Application/IW4MServer.cs @@ -1472,6 +1472,11 @@ namespace IW4MAdmin ServerLogger.LogDebug("Creating tempban penalty for {TargetClient}", targetClient.ToString()); await newPenalty.TryCreatePenalty(Manager.GetPenaltyService(), ServerLogger); + + foreach (var reports in Manager.GetServers().Select(server => server.Reports)) + { + reports.RemoveAll(report => report.Target.ClientId == targetClient.ClientId); + } if (activeClient.IsIngame) { @@ -1502,6 +1507,11 @@ namespace IW4MAdmin activeClient.SetLevel(Permission.Banned, originClient); await newPenalty.TryCreatePenalty(Manager.GetPenaltyService(), ServerLogger); + foreach (var reports in Manager.GetServers().Select(server => server.Reports)) + { + reports.RemoveAll(report => report.Target.ClientId == targetClient.ClientId); + } + if (activeClient.IsIngame) { ServerLogger.LogDebug("Attempting to kicking newly banned client {ActiveClient}", activeClient.ToString());