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