Fix naming in minimaptagger

This commit is contained in:
2025-01-26 18:13:53 +01:00
parent ef89c3001b
commit 0e951d7089

View File

@@ -360,11 +360,15 @@ function shared.MinimapTagger.Init()
local channelId = select(6, ...) local channelId = select(6, ...)
local _, channelname = GetChannelName(channelId) local _, channelname = GetChannelName(channelId)
-- if Heimdall_Data.config.echoer.debug then local ok = false
-- print(string.format("[%s] Processing message from channel: %s", ModuleName, channelname)) for _, channel in pairs(Heimdall_Data.config.minimapTagger.channels) do
-- end if channelname == channel then
ok = true
break
end
end
if channelname ~= Heimdall_Data.config.minimapTagger.masterChannel then if not ok then
if Heimdall_Data.config.minimapTagger.debug then if Heimdall_Data.config.minimapTagger.debug then
print(string.format("[%s] Ignoring message from non-master channel: %s, need %s", ModuleName, channelname, print(string.format("[%s] Ignoring message from non-master channel: %s, need %s", ModuleName, channelname,
Heimdall_Data.config.minimapTagger.masterChannel)) Heimdall_Data.config.minimapTagger.masterChannel))