From 293e71e61979d549bf007e19d7637f56ec621398 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 26 Jan 2025 18:16:49 +0100 Subject: [PATCH] Fix naming in noter --- Modules/Noter.lua | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Modules/Noter.lua b/Modules/Noter.lua index 4232210..7f18680 100644 --- a/Modules/Noter.lua +++ b/Modules/Noter.lua @@ -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