From 63ba6d2da13ea3b1454ec7c963a708b9bd5c284c Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 26 Jan 2025 18:01:47 +0100 Subject: [PATCH] Fix naming in inviter --- Modules/Inviter.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Modules/Inviter.lua b/Modules/Inviter.lua index 7b578a0..e0d77ac 100644 --- a/Modules/Inviter.lua +++ b/Modules/Inviter.lua @@ -192,9 +192,17 @@ function shared.Inviter.Init() print(string.format("[%s] Channel name: %s", ModuleName, channelname)) end - if not Heimdall_Data.config.inviter.listeningChannel[channelname] then + local ok = false + for _, channel in pairs(Heimdall_Data.config.inviter.channels) do + if channel == channelname then + ok = true + break + end + end + + if not ok then if Heimdall_Data.config.inviter.debug then - print(string.format("[%s] Channel name does not match listening channel", ModuleName)) + print(string.format("[%s] Channel name does not match any of the channels", ModuleName)) end return end