Originally Posted by Slakah
The addonname check is to prevent the "OnEvent" function being called more than once.
|
Yes, but if it's the case that all addons's saved variables are loaded when the first ADDON_LOADED fires you can just skip the addon name check and unregister ADDON_LOADED right after it has fired for the first time.