comparison Core.lua @ 126:31f58e9c16e6

Fixed double loading of ZeroAuctions when using AddonLoader.
author Zerotorescue
date Sat, 16 Oct 2010 15:27:51 +0200
parents b21c39ea338c
children b54116796220
comparison
equal deleted inserted replaced
125:594c52f5007d 126:31f58e9c16e6
282 282
283 if select(6, GetAddOnInfo("Postal")) == nil then 283 if select(6, GetAddOnInfo("Postal")) == nil then
284 self.PostalEnabled = true; -- Set this as an object variable so we can use it in our modules 284 self.PostalEnabled = true; -- Set this as an object variable so we can use it in our modules
285 285
286 -- Ensure this addon is loaded if AddonLoader is installed 286 -- Ensure this addon is loaded if AddonLoader is installed
287 if AddonLoader and AddonLoader.LoadAddOn and not Postal then 287 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("Postal") and not Postal then
288 AddonLoader:LoadAddOn("Postal"); 288 AddonLoader:LoadAddOn("Postal");
289 end 289 end
290 end 290 end
291 291
292 if select(6, GetAddOnInfo("ZeroAuctions")) == nil then 292 if select(6, GetAddOnInfo("ZeroAuctions")) == nil then
293 self.ZeroAuctionsEnabled = true; -- Set this as an object variable so we can use it in our modules 293 self.ZeroAuctionsEnabled = true; -- Set this as an object variable so we can use it in our modules
294 294
295 -- Ensure this addon is loaded if AddonLoader is installed 295 -- Ensure this addon is loaded if AddonLoader is installed
296 if AddonLoader and AddonLoader.LoadAddOn then 296 if AddonLoader and AddonLoader.LoadAddOn and not IsAddOnLoaded("ZeroAuctions") then
297 AddonLoader:LoadAddOn("ZeroAuctions"); 297 AddonLoader:LoadAddOn("ZeroAuctions");
298 end 298 end
299 end 299 end
300 300
301 301