Rename dumpTable to dump and make it work with plain values
This commit is contained in:
@@ -26,7 +26,7 @@ local function init()
|
||||
---@field _L fun(key: string, locale: string): string
|
||||
---@field _Locale Localization
|
||||
---@field VERSION string
|
||||
---@field dumpTable fun(table: any, depth?: number): nil
|
||||
---@field dump fun(table: any, depth?: number): nil
|
||||
---@field utf8len fun(input: string): number
|
||||
---@field padString fun(input: string, targetLength: number, left?: boolean): string
|
||||
---@field GetOrDefault fun(table: table<any, any>, keys: string[], default: any): any
|
||||
|
2
Meta
2
Meta
Submodule Meta updated: e0b57e39fc...eee043a846
@@ -89,7 +89,7 @@ function shared.AgentTracker.Init()
|
||||
end
|
||||
if Heimdall_Data.config.agentTracker.debug then
|
||||
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
|
||||
shared.dumpTable(Heimdall_Data.config.agentTracker)
|
||||
shared.dump(Heimdall_Data.config.agentTracker)
|
||||
end
|
||||
|
||||
sender = string.match(sender, "^[^-]+")
|
||||
|
@@ -124,7 +124,7 @@ function shared.BonkDetector.Init()
|
||||
}
|
||||
if Heimdall_Data.config.bonkDetector.debug then
|
||||
print(string.format("[%s] Queuing bonk detector message", ModuleName))
|
||||
shared.dumpTable(message)
|
||||
shared.dump(message)
|
||||
end
|
||||
table.insert(shared.messenger.queue, message)
|
||||
end
|
||||
|
@@ -106,7 +106,7 @@ function shared.CombatAlerter.Init()
|
||||
}
|
||||
if Heimdall_Data.config.combatAlerter.debug then
|
||||
print(string.format("[%s] Queuing alert message", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
end
|
||||
|
@@ -152,7 +152,7 @@ function shared.Commander.Init()
|
||||
local function WhoPartitionedStinkies()
|
||||
if Heimdall_Data.config.commander.debug then
|
||||
print(string.format("[%s] Executing: WhoPartitionedStinkies", ModuleName))
|
||||
shared.dumpTable(HeimdallStinkies)
|
||||
shared.dump(HeimdallStinkies)
|
||||
end
|
||||
local res = WhoPartitioned(HeimdallStinkies)
|
||||
if #res == 0 then return { "No stinkies found" } end
|
||||
@@ -266,7 +266,7 @@ function shared.Commander.Init()
|
||||
commanderChannelFrame:SetScript("OnEvent", function(self, event, msg, sender, ...)
|
||||
--if Heimdall_Data.config.commander.debug then
|
||||
-- print(string.format("[%s] Event received", ModuleName))
|
||||
-- shared.dumpTable(Heimdall_Data.config.commander)
|
||||
-- shared.dump(Heimdall_Data.config.commander)
|
||||
--end
|
||||
if not Heimdall_Data.config.commander.enabled then
|
||||
--if Heimdall_Data.config.commander.debug then
|
||||
@@ -300,7 +300,7 @@ function shared.Commander.Init()
|
||||
sender = string.match(sender, "^[^-]+")
|
||||
if Heimdall_Data.config.commander.debug then
|
||||
print(string.format("[%s] Message from: %s", ModuleName, sender))
|
||||
shared.dumpTable(Heimdall_Data.config.commander)
|
||||
shared.dump(Heimdall_Data.config.commander)
|
||||
end
|
||||
|
||||
for _, command in ipairs(commands) do
|
||||
@@ -331,7 +331,7 @@ function shared.Commander.Init()
|
||||
}
|
||||
if Heimdall_Data.config.commander.debug then
|
||||
print(string.format("[%s] Queuing message", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
--table.insert(shared.messenger.queue, msg)
|
||||
table.insert(shared.networkMessenger.queue, returnmsg)
|
||||
|
@@ -706,7 +706,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.spotter.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.spotter.channels)
|
||||
shared.dump(Heimdall_Data.config.spotter.channels)
|
||||
end
|
||||
)
|
||||
spotterConfigFrame:Add(channels, 2, 4)
|
||||
@@ -806,7 +806,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.who.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.who.channels)
|
||||
shared.dump(Heimdall_Data.config.who.channels)
|
||||
end
|
||||
)
|
||||
whoerConfigFrame:Add(channels, 2, 3)
|
||||
@@ -1018,7 +1018,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.deathReporter.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.deathReporter.channels)
|
||||
shared.dump(Heimdall_Data.config.deathReporter.channels)
|
||||
end
|
||||
)
|
||||
deathReporterConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1143,7 +1143,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.inviter.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.inviter.channels)
|
||||
shared.dump(Heimdall_Data.config.inviter.channels)
|
||||
end
|
||||
)
|
||||
inviterConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1298,7 +1298,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.agentTracker.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.agentTracker.channels)
|
||||
shared.dump(Heimdall_Data.config.agentTracker.channels)
|
||||
end
|
||||
)
|
||||
agentTrackerConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1351,7 +1351,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.stinkyTracker.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.stinkyTracker.channels)
|
||||
shared.dump(Heimdall_Data.config.stinkyTracker.channels)
|
||||
end
|
||||
)
|
||||
stinkyTrackerConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1404,7 +1404,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.emoter.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.emoter.channels)
|
||||
shared.dump(Heimdall_Data.config.emoter.channels)
|
||||
end
|
||||
)
|
||||
emoterConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1475,7 +1475,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.echoer.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.echoer.channels)
|
||||
shared.dump(Heimdall_Data.config.echoer.channels)
|
||||
end
|
||||
)
|
||||
echoerConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1546,7 +1546,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.commander.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.commander.channels)
|
||||
shared.dump(Heimdall_Data.config.commander.channels)
|
||||
end
|
||||
)
|
||||
commanderConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1680,7 +1680,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.combatAlerter.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.combatAlerter.channels)
|
||||
shared.dump(Heimdall_Data.config.combatAlerter.channels)
|
||||
end
|
||||
)
|
||||
combatAlerterConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1745,7 +1745,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.sniffer.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.sniffer.channels)
|
||||
shared.dump(Heimdall_Data.config.sniffer.channels)
|
||||
end
|
||||
)
|
||||
snifferConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1835,7 +1835,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.bonkDetector.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.bonkDetector.channels)
|
||||
shared.dump(Heimdall_Data.config.bonkDetector.channels)
|
||||
end
|
||||
)
|
||||
bonkDetectorConfigFrame:Add(channels, 2, 6)
|
||||
@@ -1906,7 +1906,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.minimapTagger.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.minimapTagger.channels)
|
||||
shared.dump(Heimdall_Data.config.minimapTagger.channels)
|
||||
end
|
||||
)
|
||||
minimapTaggerConfigFrame:Add(channels, 2, 3)
|
||||
@@ -2275,7 +2275,7 @@ function shared.Config.Init()
|
||||
local text = self:GetText()
|
||||
Heimdall_Data.config.noter.channels = StringToArray(text, ",")
|
||||
print("Channels set to")
|
||||
shared.dumpTable(Heimdall_Data.config.noter.channels)
|
||||
shared.dump(Heimdall_Data.config.noter.channels)
|
||||
end
|
||||
)
|
||||
noterConfigFrame:Add(channels, 2, 6)
|
||||
|
@@ -168,7 +168,7 @@ function shared.DeathReporter.Init()
|
||||
}
|
||||
if Heimdall_Data.config.deathReporter.debug then
|
||||
print(string.format("[%s] Queuing death report message", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
end
|
||||
|
@@ -1,25 +1,29 @@
|
||||
local _, shared = ...
|
||||
---@cast shared HeimdallShared
|
||||
|
||||
if not shared.dumpTable then
|
||||
---@param table table
|
||||
if not shared.dump then
|
||||
---@param value any
|
||||
---@param depth number?
|
||||
shared.dumpTable = function(table, depth)
|
||||
if not table then
|
||||
print(tostring(table))
|
||||
shared.dump = function(value, depth)
|
||||
if not value then
|
||||
print(tostring(value))
|
||||
return
|
||||
end
|
||||
if type(value) ~= "table" then
|
||||
print(tostring(value))
|
||||
return
|
||||
end
|
||||
if depth == nil then depth = 0 end
|
||||
if depth > 200 then
|
||||
print("Error: Depth > 200 in dumpTable()")
|
||||
print("Error: Depth > 200 in dump()")
|
||||
return
|
||||
end
|
||||
for k, v in pairs(table) do
|
||||
for k, v in pairs(value) do
|
||||
if type(v) == "table" then
|
||||
print(string.rep(" ", depth) .. k .. ":")
|
||||
shared.dumpTable(v, depth + 1)
|
||||
print(string.rep(" ", depth) .. tostring(k) .. ":")
|
||||
shared.dump(v, depth + 1)
|
||||
else
|
||||
print(string.rep(" ", depth) .. k .. ": ", v)
|
||||
print(string.rep(" ", depth) .. tostring(k) .. ": " .. tostring(v))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -36,7 +36,7 @@ function shared.Echoer.Init()
|
||||
end
|
||||
if Heimdall_Data.config.echoer.debug then
|
||||
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
|
||||
shared.dumpTable(Heimdall_Data.config.echoer)
|
||||
shared.dump(Heimdall_Data.config.echoer)
|
||||
end
|
||||
|
||||
if string.find(msg, "^" .. Heimdall_Data.config.echoer.prefix) then
|
||||
|
@@ -37,7 +37,7 @@ function shared.Emoter.Init()
|
||||
|
||||
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)
|
||||
shared.dump(Heimdall_Data.config.emoter)
|
||||
end
|
||||
|
||||
if string.find(msg, "^" .. Heimdall_Data.config.emoter.prefix) then
|
||||
|
@@ -205,7 +205,7 @@ function shared.Inviter.Init()
|
||||
inviterChannelFrame:SetScript("OnEvent", function(self, event, msg, sender, ...)
|
||||
--if Heimdall_Data.config.inviter.debug then
|
||||
-- print(string.format("[%s] Chat message received: %s", ModuleName, msg))
|
||||
-- shared.dumpTable(Heimdall_Data.config.inviter)
|
||||
-- shared.dump(Heimdall_Data.config.inviter)
|
||||
--end
|
||||
if not Heimdall_Data.config.inviter.enabled then return end
|
||||
local channelId = select(6, ...)
|
||||
|
@@ -68,7 +68,7 @@ function shared.Macroer.Init()
|
||||
|
||||
if Heimdall_Data.config.macroer.debug then
|
||||
print(string.format("[%s] Sorted stinkies: %d", ModuleName, #sortedStinkies))
|
||||
shared.dumpTable(sortedStinkies)
|
||||
shared.dump(sortedStinkies)
|
||||
end
|
||||
local lines = { "/targetenemy" }
|
||||
for _, stinky in pairs(sortedStinkies) do
|
||||
|
@@ -445,7 +445,7 @@ function shared.MinimapTagger.Init()
|
||||
end
|
||||
if Heimdall_Data.config.minimapTagger.debug then
|
||||
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
|
||||
shared.dumpTable(Heimdall_Data.config.minimapTagger)
|
||||
shared.dump(Heimdall_Data.config.minimapTagger)
|
||||
end
|
||||
|
||||
local doTag = true
|
||||
|
@@ -50,7 +50,7 @@ function shared.Network.Init()
|
||||
end
|
||||
if Heimdall_Data.config.network.debug then
|
||||
print(string.format("[%s] Network nodes:", ModuleName))
|
||||
shared.dumpTable(shared.networkNodes)
|
||||
shared.dump(shared.networkNodes)
|
||||
end
|
||||
end
|
||||
|
||||
|
@@ -131,7 +131,7 @@ function shared.NetworkMessenger.Init()
|
||||
local parts = shared.Split(message, "|")
|
||||
if Heimdall_Data.config.networkMessenger.debug then
|
||||
print(string.format("[%s] Received message parts:", ModuleName))
|
||||
shared.dumpTable(parts)
|
||||
shared.dump(parts)
|
||||
end
|
||||
local command = strtrim(parts[1])
|
||||
if command == "message" then
|
||||
|
@@ -61,7 +61,7 @@ function shared.Noter.Init()
|
||||
local indices = shared.Split(range, "..")
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Indices for range deletion: %s", ModuleName, table.concat(indices, ", ")))
|
||||
shared.dumpTable(indices)
|
||||
shared.dump(indices)
|
||||
end
|
||||
local start = tonumber(indices[1])
|
||||
local finish = tonumber(indices[2])
|
||||
@@ -90,7 +90,7 @@ function shared.Noter.Init()
|
||||
else
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Deleting note %s at index %s", ModuleName, name, i))
|
||||
shared.dumpTable(Heimdall_Data.config.notes[name][i])
|
||||
shared.dump(Heimdall_Data.config.notes[name][i])
|
||||
end
|
||||
Heimdall_Data.config.notes[name][i] = nil
|
||||
end
|
||||
@@ -151,7 +151,7 @@ function shared.Noter.Init()
|
||||
local indices = shared.Split(range, "..")
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Indices for range printing: %s", ModuleName, table.concat(indices, ", ")))
|
||||
shared.dumpTable(indices)
|
||||
shared.dump(indices)
|
||||
end
|
||||
local start = tonumber(indices[1])
|
||||
local finish = tonumber(indices[2])
|
||||
@@ -177,7 +177,7 @@ function shared.Noter.Init()
|
||||
else
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Printing note %s at index %s", ModuleName, name, i))
|
||||
shared.dumpTable(Heimdall_Data.config.notes[name][i])
|
||||
shared.dump(Heimdall_Data.config.notes[name][i])
|
||||
end
|
||||
PrintNote(channel, i, Heimdall_Data.config.notes[name][i])
|
||||
end
|
||||
@@ -192,7 +192,7 @@ function shared.Noter.Init()
|
||||
if not Heimdall_Data.config.notes[name] then Heimdall_Data.config.notes[name] = {} end
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Adding note for: %s from: %s", ModuleName, name, sender))
|
||||
shared.dumpTable(args)
|
||||
shared.dump(args)
|
||||
end
|
||||
local msgparts = {}
|
||||
for i = 3, #args do
|
||||
@@ -213,7 +213,7 @@ function shared.Noter.Init()
|
||||
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Adding note", ModuleName))
|
||||
shared.dumpTable(note)
|
||||
shared.dump(note)
|
||||
end
|
||||
table.insert(Heimdall_Data.config.notes[name], note)
|
||||
end
|
||||
@@ -231,7 +231,7 @@ function shared.Noter.Init()
|
||||
noterChannelFrame:SetScript("OnEvent", function(self, event, msg, sender, ...)
|
||||
--if Heimdall_Data.config.noter.debug then
|
||||
-- print(string.format("[%s] Event received", ModuleName))
|
||||
-- shared.dumpTable(Heimdall_Data.config.noter)
|
||||
-- shared.dump(Heimdall_Data.config.noter)
|
||||
--end
|
||||
if not Heimdall_Data.config.noter.enabled then
|
||||
--if Heimdall_Data.config.noter.debug then
|
||||
@@ -258,7 +258,7 @@ function shared.Noter.Init()
|
||||
sender = string.match(sender, "^[^-]+")
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Message from: %s", ModuleName, sender))
|
||||
shared.dumpTable(Heimdall_Data.config.noter)
|
||||
shared.dump(Heimdall_Data.config.noter)
|
||||
end
|
||||
|
||||
if not msg or msg == "" then
|
||||
@@ -271,7 +271,7 @@ function shared.Noter.Init()
|
||||
local args = { strsplit(" ", msg) }
|
||||
if Heimdall_Data.config.noter.debug then
|
||||
print(string.format("[%s] Arguments received: %s", ModuleName, table.concat(args, ", ")))
|
||||
shared.dumpTable(args)
|
||||
shared.dump(args)
|
||||
end
|
||||
local command = args[1]
|
||||
if command == "note" then
|
||||
|
@@ -483,7 +483,7 @@ local function Init()
|
||||
-- S local clbk = test:onChange(function(value)
|
||||
-- S invocations = invocations + 1
|
||||
-- S print("test changed to")
|
||||
-- S dumpTable(value, 0)
|
||||
-- S dump(value, 0)
|
||||
-- S end)
|
||||
-- S test:set({1, 2, 3, 4})
|
||||
-- S assert(invocations == 1)
|
||||
@@ -516,7 +516,7 @@ local function Init()
|
||||
-- S test:once(function(value)
|
||||
-- S invocations = invocations + 1
|
||||
-- S print("test changed to")
|
||||
-- S dumpTable(value, 0)
|
||||
-- S dump(value, 0)
|
||||
-- S end)
|
||||
-- S test:set({3, 2, 1})
|
||||
-- S assert(invocations == 1)
|
||||
@@ -527,7 +527,7 @@ local function Init()
|
||||
-- S test:onChange(function(value)
|
||||
-- S invocations = invocations + 1
|
||||
-- S print("test changed to")
|
||||
-- S dumpTable(value, 0)
|
||||
-- S dump(value, 0)
|
||||
-- S end)
|
||||
-- S test:onAnyFieldChange(function(field, value)
|
||||
-- S invocations = invocations + 1
|
||||
|
@@ -10,7 +10,7 @@ function shared.Sniffer.Init()
|
||||
local SmellStinky = function(stinky)
|
||||
if Heimdall_Data.config.sniffer.debug then
|
||||
print(string.format("%s: SmellStinky", ModuleName))
|
||||
shared.dumpTable(Heimdall_Data.config.sniffer)
|
||||
shared.dump(Heimdall_Data.config.sniffer)
|
||||
end
|
||||
if not Heimdall_Data.config.sniffer.enabled then return end
|
||||
if Heimdall_Data.config.sniffer.stinky and not shared.IsStinky(stinky) then
|
||||
@@ -36,7 +36,7 @@ function shared.Sniffer.Init()
|
||||
}
|
||||
if Heimdall_Data.config.sniffer.debug then
|
||||
print(string.format("[%s] Queuing sniffer message", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
end
|
||||
|
@@ -188,7 +188,7 @@ function shared.Spotter.Init()
|
||||
}
|
||||
if Heimdall_Data.config.spotter.debug then
|
||||
print(string.format("[%s] Queuing spotter message", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
end
|
||||
|
@@ -34,7 +34,7 @@ function shared.StinkyTracker.Init()
|
||||
date("%H:%M:%S", time())
|
||||
)
|
||||
)
|
||||
shared.dumpTable(stinkies)
|
||||
shared.dump(stinkies)
|
||||
end
|
||||
end
|
||||
return stinkies
|
||||
@@ -73,7 +73,7 @@ function shared.StinkyTracker.Init()
|
||||
date("%H:%M:%S", time())
|
||||
)
|
||||
)
|
||||
shared.dumpTable(stinkies)
|
||||
shared.dump(stinkies)
|
||||
end
|
||||
return stinkies
|
||||
end
|
||||
@@ -106,7 +106,7 @@ function shared.StinkyTracker.Init()
|
||||
stinkies[name] = stinky
|
||||
if Heimdall_Data.config.stinkyTracker.debug then
|
||||
print(string.format("%s: Found stinky in arrived: %s/%s", ModuleName, name, class))
|
||||
shared.dumpTable(stinkies)
|
||||
shared.dump(stinkies)
|
||||
end
|
||||
return stinkies
|
||||
end
|
||||
@@ -140,7 +140,7 @@ function shared.StinkyTracker.Init()
|
||||
end
|
||||
if Heimdall_Data.config.stinkyTracker.debug then
|
||||
print(string.format("[%s] Processing message from master channel: %s", ModuleName, sender))
|
||||
shared.dumpTable(Heimdall_Data.config.stinkyTracker)
|
||||
shared.dump(Heimdall_Data.config.stinkyTracker)
|
||||
end
|
||||
|
||||
if string.find(msg, "^who:") then
|
||||
|
@@ -163,7 +163,7 @@ function shared.Whoer.Init()
|
||||
if Heimdall_Data.config.who.debug then
|
||||
print(string.format("[%s] WHO query: %s with %d filters", ModuleName, queryParts[1], #filters))
|
||||
end
|
||||
shared.dumpTable(filters)
|
||||
shared.dump(filters)
|
||||
return WHOQuery.new(queryParts[1], filters)
|
||||
end,
|
||||
---@param queryStr string
|
||||
@@ -297,7 +297,7 @@ function shared.Whoer.Init()
|
||||
}
|
||||
if Heimdall_Data.config.who.debug then
|
||||
print(string.format("[%s] Queuing channel notification", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
table.insert(shared.networkMessenger.queue, msg)
|
||||
end
|
||||
@@ -356,7 +356,7 @@ function shared.Whoer.Init()
|
||||
}
|
||||
if Heimdall_Data.config.who.debug then
|
||||
print(string.format("[%s] Queuing channel notification", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
table.insert(shared.networkMessenger.queue, msg)
|
||||
end
|
||||
@@ -407,7 +407,7 @@ function shared.Whoer.Init()
|
||||
}
|
||||
if Heimdall_Data.config.who.debug then
|
||||
print(string.format("[%s] Queuing channel notification", ModuleName))
|
||||
shared.dumpTable(msg)
|
||||
shared.dump(msg)
|
||||
end
|
||||
--table.insert(shared.messenger.queue, msg)
|
||||
table.insert(shared.networkMessenger.queue, msg)
|
||||
|
Reference in New Issue
Block a user