Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if AddonLoader.events[event] then
- --- run the handlers
- for name, conditions in pairs(AddonLoader.events[event]) do
- if not IsAddOnLoaded(name) then
- for condname, condition in pairs(conditions) do
- if condition.handler(event, name, condition.arg, ...) then
- AddonLoader:LoadAddOn(name)
- break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement