From de744337ad268ca3ec989aca1dae370ea30022a2 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 26 Jan 2025 18:02:42 +0100 Subject: [PATCH] Fix naming in agenttracker --- Modules/AgentTracker.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Modules/AgentTracker.lua b/Modules/AgentTracker.lua index b70a625..9338373 100644 --- a/Modules/AgentTracker.lua +++ b/Modules/AgentTracker.lua @@ -71,10 +71,17 @@ function shared.AgentTracker.Init() local channelId = select(6, ...) local _, channelname = GetChannelName(channelId) - if channelname ~= Heimdall_Data.config.agentTracker.masterChannel then - -- if Heimdall_Data.config.agentTracker.debug then - -- print(string.format("[%s] Ignoring message from non-master channel: %s", ModuleName, channelname)) - -- end + local ok = false + for _, channel in pairs(Heimdall_Data.config.agentTracker.channels) do + if channel == channelname then + ok = true + break + end + end + if not ok then + if Heimdall_Data.config.agentTracker.debug then + print(string.format("[%s] Channel name does not match any of the channels", ModuleName)) + end return end if Heimdall_Data.config.agentTracker.debug then