diff --git a/Clicked/Core/Clicked.lua b/Clicked/Core/Clicked.lua index b26e3111..f72f94b1 100644 --- a/Clicked/Core/Clicked.lua +++ b/Clicked/Core/Clicked.lua @@ -241,6 +241,11 @@ function Clicked:OnInitialize() end function Clicked:OnEnable() + --- @debug@ + local projectUrl = "https://www.curseforge.com/wow/addons/clicked" + print(Addon:AppendClickedMessagePrefix("You are using a development version, download the latest release from " .. projectUrl)) + --- @end-debug@ + self:RegisterEvent("PLAYER_REGEN_DISABLED", PLAYER_REGEN_DISABLED) self:RegisterEvent("PLAYER_REGEN_ENABLED", PLAYER_REGEN_ENABLED) self:RegisterEvent("PLAYER_ENTERING_WORLD", PLAYER_ENTERING_WORLD) diff --git a/Clicked/Core/Init.lua b/Clicked/Core/Init.lua index b0d8e3dd..9167623e 100644 --- a/Clicked/Core/Init.lua +++ b/Clicked/Core/Init.lua @@ -22,17 +22,17 @@ local Addon = select(2, ...) ---@diagnostic disable-next-line: lowercase-global function dump(o) if type(o) == 'table' then - local s = '{ ' - for k,v in pairs(o) do - if type(k) ~= 'number' then k = '"'..k..'"' end - -- luacheck: ignore - s = s .. '['..k..'] = ' .. dump(v) .. ',' - end - return s .. '} ' + local s = '{ ' + for k,v in pairs(o) do + if type(k) ~= 'number' then k = '"'..k..'"' end + -- luacheck: ignore + s = s .. '['..k..'] = ' .. dump(v) .. ',' + end + return s .. '} ' else - return tostring(o) + return tostring(o) end - end +end ---@end-debug@ --- @param err any