Fix naming in inviter
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user