1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 06:08:20 -05:00

fix another thing

This commit is contained in:
RaidMax 2021-08-16 18:28:00 -05:00
parent 8ccf8e2245
commit 7d30d80684

View File

@ -604,10 +604,6 @@ namespace SharedLibraryCore.Database.Models
await SetLevel(Permission.Banned, autoKickClient).WaitAsync(Utilities.DefaultCommandTimeout, await SetLevel(Permission.Banned, autoKickClient).WaitAsync(Utilities.DefaultCommandTimeout,
CurrentServer.Manager.CancellationToken); 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) if (Level != Permission.Banned)
@ -615,6 +611,10 @@ namespace SharedLibraryCore.Database.Models
Ban(banPenalty.Offense, autoKickClient, true); Ban(banPenalty.Offense, autoKickClient, true);
return false; 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 // we want to kick them if any account is tempbanned