Make quote around cleu fields

This commit is contained in:
2024-11-09 15:06:29 +01:00
parent 6949a1db29
commit d00a21266a

View File

@@ -1,7 +1,8 @@
local function varargToString(...) local function varargToString(...)
local output = {} local output = {}
for i = 1, select("#", ...) do for i = 1, select("#", ...) do
output[#output + 1] = tostring(select(i, ...)) local value = select(i, ...)
output[#output + 1] = "\"" .. tostring(value) .. "\""
end end
return table.concat(output, ",") return table.concat(output, ",")
end end
@@ -14,6 +15,7 @@ if not WeakAurasSaved.Cyka.CombatLog then WeakAurasSaved.Cyka.CombatLog = {} end
---@param subevent string ---@param subevent string
---@param ... any ---@param ... any
aura_env.LogSpell = function(subevent, ...) aura_env.LogSpell = function(subevent, ...)
print(varargToString(subevent, ...))
table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...)) table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...))
end end
-- /dump WeakAurasSaved.Cyka.CombatLog -- /dump WeakAurasSaved.Cyka.CombatLog