Make sure you enable Lua errors, but also your OnEvent signature was correct since colon syntax is used. You'll still want to make sure that it was
your addon that loaded, though.
Code:
function lf:OnEvent(event, ...)
if (event == "ADDON_LOADED") then
if (... == "LCI") then -- needs to be same as your addon folder and ToC file name
CheckNewChar()
end
end
end
print is your best friend in troubleshooting. Add it in functions that are meant to be executed to see where execution goes wrong and, if necessary, whether relevant variables have the expected values.