Fix naming in echoer and emoter
This commit is contained in:
@@ -22,14 +22,17 @@ function shared.Echoer.Init()
|
|||||||
|
|
||||||
local channelId = select(6, ...)
|
local channelId = select(6, ...)
|
||||||
local _, channelname = GetChannelName(channelId)
|
local _, channelname = GetChannelName(channelId)
|
||||||
-- if Heimdall_Data.config.echoer.debug then
|
local ok = false
|
||||||
-- print(string.format("[%s] Processing message from channel: %s", ModuleName, channelname))
|
for _, channel in pairs(Heimdall_Data.config.echoer.channels) do
|
||||||
-- end
|
if channel == channelname then
|
||||||
|
ok = true
|
||||||
if channelname ~= Heimdall_Data.config.echoer.masterChannel then
|
break
|
||||||
-- if Heimdall_Data.config.echoer.debug then
|
end
|
||||||
-- print(string.format("[%s] Ignoring message from non-master channel", ModuleName))
|
end
|
||||||
-- end
|
if not ok then
|
||||||
|
if Heimdall_Data.config.echoer.debug then
|
||||||
|
print(string.format("[%s] Channel name does not match any of the channels", ModuleName))
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if Heimdall_Data.config.echoer.debug then
|
if Heimdall_Data.config.echoer.debug then
|
||||||
|
|||||||
@@ -22,16 +22,20 @@ function shared.Emoter.Init()
|
|||||||
|
|
||||||
local channelId = select(6, ...)
|
local channelId = select(6, ...)
|
||||||
local _, channelname = GetChannelName(channelId)
|
local _, channelname = GetChannelName(channelId)
|
||||||
-- if Heimdall_Data.config.emoter.debug then
|
local ok = false
|
||||||
-- print(string.format("[%s] Processing message from channel: %s", ModuleName, channelname))
|
for _, channel in pairs(Heimdall_Data.config.emoter.channels) do
|
||||||
-- end
|
if channel == channelname then
|
||||||
|
ok = true
|
||||||
if channelname ~= Heimdall_Data.config.emoter.masterChannel then
|
break
|
||||||
-- if Heimdall_Data.config.emoter.debug then
|
end
|
||||||
-- print(string.format("[%s] Ignoring message from non-master channel", ModuleName))
|
end
|
||||||
-- end
|
if not ok then
|
||||||
|
if Heimdall_Data.config.emoter.debug then
|
||||||
|
print(string.format("[%s] Channel name does not match any of the channels", ModuleName))
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if Heimdall_Data.config.emoter.debug then
|
if Heimdall_Data.config.emoter.debug then
|
||||||
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
|
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
|
||||||
shared.dumpTable(Heimdall_Data.config.emoter)
|
shared.dumpTable(Heimdall_Data.config.emoter)
|
||||||
|
|||||||
Reference in New Issue
Block a user