# HG changeset patch # User Zerotorescue # Date 1287235671 -7200 # Node ID 31f58e9c16e6f460a414a14952a288d63dacc345 # Parent 594c52f5007d4c3c58913fa071683d1cf1cfb933 Fixed double loading of ZeroAuctions when using AddonLoader. diff -r 594c52f5007d -r 31f58e9c16e6 Core.lua --- a/Core.lua Sat Oct 16 15:00:39 2010 +0200 +++ b/Core.lua Sat Oct 16 15:27:51 2010 +0200 @@ -284,7 +284,7 @@ self.PostalEnabled = true; -- Set this as an object variable so we can use it in our modules -- Ensure this addon is loaded if AddonLoader is installed - if AddonLoader and AddonLoader.LoadAddOn and not Postal then + if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("Postal") and not Postal then AddonLoader:LoadAddOn("Postal"); end end @@ -293,7 +293,7 @@ self.ZeroAuctionsEnabled = true; -- Set this as an object variable so we can use it in our modules -- Ensure this addon is loaded if AddonLoader is installed - if AddonLoader and AddonLoader.LoadAddOn then + if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("ZeroAuctions") then AddonLoader:LoadAddOn("ZeroAuctions"); end end