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