Fix naming in noter
This commit is contained in:
@@ -243,13 +243,18 @@ function shared.Noter.Init()
|
|||||||
end
|
end
|
||||||
local channelId = select(6, ...)
|
local channelId = select(6, ...)
|
||||||
local _, channelname = GetChannelName(channelId)
|
local _, channelname = GetChannelName(channelId)
|
||||||
--if Heimdall_Data.config.noter.debug then
|
local ok = false
|
||||||
-- print(string.format("[%s] Channel received: %s", ModuleName, channelname))
|
for _, channel in pairs(Heimdall_Data.config.noter.channels) do
|
||||||
--end
|
if channelname == channel then
|
||||||
if channelname ~= Heimdall_Data.config.noter.masterChannel then
|
ok = true
|
||||||
--if Heimdall_Data.config.noter.debug then
|
break
|
||||||
-- print(string.format("[%s] Channel %s does not match master channel %s", ModuleName, channelname, Heimdall_Data.config.noter.masterChannel))
|
end
|
||||||
--end
|
end
|
||||||
|
if not ok then
|
||||||
|
if Heimdall_Data.config.noter.debug then
|
||||||
|
print(string.format("[%s] Channel %s does not match master channel %s", ModuleName, channelname,
|
||||||
|
Heimdall_Data.config.noter.masterChannel))
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user