Fixed being unable to disable chatbots

This commit is contained in:
Chomp
2025-10-10 17:50:01 +01:00
parent a0937c2d33
commit ef4c646ffd
@@ -121,7 +121,7 @@ public class DialogueController(
foreach (var bot in DialogueChatBots)
{
var botData = bot.GetChatBot();
if (chatBotConfig.EnabledBots.ContainsKey(botData.Id))
if (chatBotConfig.EnabledBots.TryGetValue(botData.Id, out var isEnabled) && isEnabled)
{
activeBots.Add(botData);
}