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
local channelId = select(6, ...)
local _, channelname = GetChannelName(channelId)
--if Heimdall_Data.config.noter.debug then
-- print(string.format("[%s] Channel received: %s", ModuleName, channelname))
--end
if channelname ~= Heimdall_Data.config.noter.masterChannel 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
local ok = false
for _, channel in pairs(Heimdall_Data.config.noter.channels) do
if channelname == channel then
ok = true
break
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
end