AuctionLite

89 - Incorrect arguments passed to ADDON_LOADED

On lines 64-68 of AuctionLite.lua, the args passed to ADDON_LOADED to fake the event are incorrect. You have the addon name passed into the event name's spot. Also, you used an elseif, making it so the guild bank UI won't be checked if the auction UI needs loading. The correct code is below:

 if IsAddOnLoaded("Blizzard_AuctionUI") then
    self:ADDON_LOADED("ADDON_LOADED", "Blizzard_AuctionUI");
  end
  if IsAddOnLoaded("Blizzard_GuildBankUI") then
    self:ADDON_LOADED("ADDON_LOADED", "Blizzard_GuildBankUI");
  end
User When Change
Cybeloras Jul 20, 2011 at 05:43 UTC Changed description:
   <<code lua>>
   if IsAddOnLoaded("Blizzard_AuctionUI") then
-     self:ADDON_LOADED("Blizzard_AuctionUI");
+     self:ADDON_LOADED("ADDON_LOADED", "Blizzard_AuctionUI");
    end
    if IsAddOnLoaded("Blizzard_GuildBankUI") then
-     self:ADDON_LOADED("Blizzard_GuildBankUI");
+     self:ADDON_LOADED("ADDON_LOADED", "Blizzard_GuildBankUI");
    end
  <</code>>
Cybeloras Jul 20, 2011 at 05:43 UTC Changed description:
- On lines 64-68 of AuctionLite.lua, the args passed to ADDON_LOADED to fake the event are incorrect. You have the addon name passed into the event name's spot. The correct code is below:
+ On lines 64-68 of AuctionLite.lua, the args passed to ADDON_LOADED to fake the event are incorrect. You have the addon name passed into the event name's spot. Also, you used an elseif, making it so the guild bank UI won't be checked if the auction UI needs loading. The correct code is below:
   <<code lua>>
- if IsAddOnLoaded("Blizzard_AuctionUI") then
+  if IsAddOnLoaded("Blizzard_AuctionUI") then
-     self:ADDON_LOADED("ADDON_LOADED", "Blizzard_AuctionUI");
+     self:ADDON_LOADED("Blizzard_AuctionUI");
+   end
-   elseif IsAddOnLoaded("Blizzard_GuildBankUI") then
+   if IsAddOnLoaded("Blizzard_GuildBankUI") then
-     self:ADDON_LOADED("ADDON_LOADED", "Blizzard_GuildBankUI");
+     self:ADDON_LOADED("Blizzard_GuildBankUI");
    end
  <</code>>
Cybeloras Jul 20, 2011 at 05:40 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Jul 20, 2011
Reported
Jul 20, 2011
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees