Fix naming in stinkytracker
This commit is contained in:
@@ -100,21 +100,28 @@ function shared.StinkyTracker.Init()
|
||||
local frame = CreateFrame("Frame")
|
||||
frame:RegisterEvent("CHAT_MSG_CHANNEL")
|
||||
frame:SetScript("OnEvent", function(self, event, msg, sender, ...)
|
||||
-- if Heimdall_Data.config.stinkyTracker.debug then
|
||||
--if Heimdall_Data.config.stinkyTracker.debug then
|
||||
-- print(string.format("[%s] Event received: %s from %s", ModuleName, event, sender))
|
||||
-- end
|
||||
--end
|
||||
if not Heimdall_Data.config.stinkyTracker.enabled then
|
||||
-- if Heimdall_Data.config.stinkyTracker.debug then
|
||||
--if Heimdall_Data.config.stinkyTracker.debug then
|
||||
-- print(string.format("[%s] Module disabled, ignoring event", ModuleName))
|
||||
-- end
|
||||
--end
|
||||
return
|
||||
end
|
||||
local channelId = select(6, ...)
|
||||
local _, channelname = GetChannelName(channelId)
|
||||
if channelname ~= Heimdall_Data.config.stinkyTracker.masterChannel then
|
||||
-- if Heimdall_Data.config.stinkyTracker.debug then
|
||||
-- print(string.format("[%s] Ignoring message from non-master channel: %s", ModuleName, channelname))
|
||||
-- end
|
||||
local ok = false
|
||||
for _, channel in pairs(Heimdall_Data.config.stinkyTracker.channels) do
|
||||
if channel == channelname then
|
||||
ok = true
|
||||
break
|
||||
end
|
||||
end
|
||||
if not ok then
|
||||
if Heimdall_Data.config.stinkyTracker.debug then
|
||||
print(string.format("[%s] Ignoring message from non-master channel: %s", ModuleName, channelname))
|
||||
end
|
||||
return
|
||||
end
|
||||
if Heimdall_Data.config.stinkyTracker.debug then
|
||||
|
Reference in New Issue
Block a user