Fix naming in agenttracker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user