Code: Select all
-- Folder-name casing is not worth trusting; compare case-insensitively.
U.RegisterEvent("ADDON_LOADED", function(event, addon)
if type(addon) == "string" and string.lower(addon) == "pandaui" then
Initialise()
end
end)Code: Select all
-- Folder-name casing is not worth trusting; compare case-insensitively.
U.RegisterEvent("ADDON_LOADED", function(event, addon)
if type(addon) == "string" and string.lower(addon) == "pandaui" then
Initialise()
end
end)