Improved comparison logic insideGetBotCap

This commit is contained in:
Chomp
2025-02-23 14:28:18 +00:00
parent 4955e07bde
commit 4ed1082ba9
+2 -1
View File
@@ -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(