Fix naming in inviter

This commit is contained in:
2025-01-26 18:01:47 +01:00
parent 79b77ee6c3
commit 63ba6d2da1

View File

@@ -192,9 +192,17 @@ function shared.Inviter.Init()
print(string.format("[%s] Channel name: %s", ModuleName, channelname)) print(string.format("[%s] Channel name: %s", ModuleName, channelname))
end 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 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 end
return return
end end