From b83ea575797be9ea5899e84e3fb02e592332e4dc Mon Sep 17 00:00:00 2001 From: RaidMax Date: Mon, 16 Aug 2021 18:28:00 -0500 Subject: [PATCH] fix another thing --- SharedLibraryCore/PartialEntities/EFClient.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SharedLibraryCore/PartialEntities/EFClient.cs b/SharedLibraryCore/PartialEntities/EFClient.cs index 901511028..0bd2c97ec 100644 --- a/SharedLibraryCore/PartialEntities/EFClient.cs +++ b/SharedLibraryCore/PartialEntities/EFClient.cs @@ -604,10 +604,6 @@ namespace SharedLibraryCore.Database.Models await SetLevel(Permission.Banned, autoKickClient).WaitAsync(Utilities.DefaultCommandTimeout, CurrentServer.Manager.CancellationToken); } - - Utilities.DefaultLogger.LogInformation("Kicking {client} because they are banned", ToString()); - Kick(loc["WEBFRONT_PENALTY_LIST_BANNED_REASON"], autoKickClient, banPenalty); - return false; } if (Level != Permission.Banned) @@ -615,6 +611,10 @@ namespace SharedLibraryCore.Database.Models Ban(banPenalty.Offense, autoKickClient, true); return false; } + + Utilities.DefaultLogger.LogInformation("Kicking {client} because they are banned", ToString()); + Kick(loc["WEBFRONT_PENALTY_LIST_BANNED_REASON"], autoKickClient, banPenalty); + return false; } // we want to kick them if any account is tempbanned