Fix naming in echoer and emoter

This commit is contained in:
2025-01-26 18:03:31 +01:00
parent de744337ad
commit 19f9d4bda9
2 changed files with 35 additions and 28 deletions

View File

@@ -22,14 +22,17 @@ function shared.Echoer.Init()
local channelId = select(6, ...)
local _, channelname = GetChannelName(channelId)
-- if Heimdall_Data.config.echoer.debug then
-- print(string.format("[%s] Processing message from channel: %s", ModuleName, channelname))
-- end
if channelname ~= Heimdall_Data.config.echoer.masterChannel then
-- if Heimdall_Data.config.echoer.debug then
-- print(string.format("[%s] Ignoring message from non-master channel", ModuleName))
-- end
local ok = false
for _, channel in pairs(Heimdall_Data.config.echoer.channels) do
if channel == channelname then
ok = true
break
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
end
if Heimdall_Data.config.echoer.debug then

View File

@@ -22,16 +22,20 @@ function shared.Emoter.Init()
local channelId = select(6, ...)
local _, channelname = GetChannelName(channelId)
-- if Heimdall_Data.config.emoter.debug then
-- print(string.format("[%s] Processing message from channel: %s", ModuleName, channelname))
-- end
if channelname ~= Heimdall_Data.config.emoter.masterChannel then
-- if Heimdall_Data.config.emoter.debug then
-- print(string.format("[%s] Ignoring message from non-master channel", ModuleName))
-- end
local ok = false
for _, channel in pairs(Heimdall_Data.config.emoter.channels) do
if channel == channelname then
ok = true
break
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
end
if Heimdall_Data.config.emoter.debug then
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
shared.dumpTable(Heimdall_Data.config.emoter)