Fix naming in stinkytracker
This commit is contained in:
@@ -111,10 +111,17 @@ function shared.StinkyTracker.Init()
|
||||
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