Fix naming in noter

This commit is contained in:
2025-01-26 18:16:49 +01:00
parent 7150189a0d
commit 293e71e619

View File

@@ -243,13 +243,18 @@ function shared.Noter.Init()
end end
local channelId = select(6, ...) local channelId = select(6, ...)
local _, channelname = GetChannelName(channelId) local _, channelname = GetChannelName(channelId)
--if Heimdall_Data.config.noter.debug then local ok = false
-- print(string.format("[%s] Channel received: %s", ModuleName, channelname)) for _, channel in pairs(Heimdall_Data.config.noter.channels) do
--end if channelname == channel then
if channelname ~= Heimdall_Data.config.noter.masterChannel then ok = true
--if Heimdall_Data.config.noter.debug then break
-- print(string.format("[%s] Channel %s does not match master channel %s", ModuleName, channelname, Heimdall_Data.config.noter.masterChannel)) end
--end end
if not ok then
if Heimdall_Data.config.noter.debug then
print(string.format("[%s] Channel %s does not match master channel %s", ModuleName, channelname,
Heimdall_Data.config.noter.masterChannel))
end
return return
end end