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