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))
|
||||
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
|
||||
|
Reference in New Issue
Block a user