From 4ed1082ba96244e9819e90536433a7030e80802a Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 23 Feb 2025 14:28:18 +0000 Subject: [PATCH] Improved comparison logic inside`GetBotCap` --- Libraries/Core/Controllers/BotController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Core/Controllers/BotController.cs b/Libraries/Core/Controllers/BotController.cs index d6443c37..16689cde 100644 --- a/Libraries/Core/Controllers/BotController.cs +++ b/Libraries/Core/Controllers/BotController.cs @@ -372,7 +372,8 @@ public class BotController( public int GetBotCap(string location) { - var botCap = _botConfig.MaxBotCap.FirstOrDefault(x => x.Key.ToLower() == location.ToLower()); + var botCap = _botConfig.MaxBotCap.FirstOrDefault(x => + string.Equals(x.Key.ToLower(), location.ToLower(), StringComparison.OrdinalIgnoreCase)); if (location == "default") { _logger.Warning(