From d00a21266a4506c2ce389a9931819a6ed471bd53 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 9 Nov 2024 15:06:29 +0100 Subject: [PATCH] Make quote around cleu fields --- FreshShit/CLEUSaver/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FreshShit/CLEUSaver/init.lua b/FreshShit/CLEUSaver/init.lua index 40e2045..405ff1d 100644 --- a/FreshShit/CLEUSaver/init.lua +++ b/FreshShit/CLEUSaver/init.lua @@ -1,7 +1,8 @@ local function varargToString(...) local output = {} for i = 1, select("#", ...) do - output[#output + 1] = tostring(select(i, ...)) + local value = select(i, ...) + output[#output + 1] = "\"" .. tostring(value) .. "\"" end return table.concat(output, ",") end @@ -14,6 +15,7 @@ if not WeakAurasSaved.Cyka.CombatLog then WeakAurasSaved.Cyka.CombatLog = {} end ---@param subevent string ---@param ... any aura_env.LogSpell = function(subevent, ...) + print(varargToString(subevent, ...)) table.insert(WeakAurasSaved.Cyka.CombatLog, varargToString(subevent, ...)) end -- /dump WeakAurasSaved.Cyka.CombatLog