# HG changeset patch # User Zerotorescue # Date 1294447144 -3600 # Node ID 31493364b163eb7f22e80117aedebf095b672c0e # Parent 14a4d757d6839eff19a770674acfc0c1fd7ca5a8 Fixed GetItemId usage to the proper capitals. diff -r 14a4d757d683 -r 31493364b163 Core.lua --- a/Core.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Core.lua Sat Jan 08 01:39:04 2011 +0100 @@ -438,7 +438,7 @@ DEFAULT_CHAT_FRAME:AddMessage(text or "", red, green, blue, nil, 5); end -function addon:GetItemID(itemLink) +function addon:GetItemId(itemLink) itemLink = itemLink and itemLink:match("|Hitem:([-0-9]+):"); -- if itemLink is nil, it won't execute the second part itemLink = itemLink and tonumber(itemLink); diff -r 14a4d757d683 -r 31493364b163 Modules/Mover.lua --- a/Modules/Mover.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Modules/Mover.lua Sat Jan 08 01:39:04 2011 +0100 @@ -281,7 +281,7 @@ local _GetContainerItemId = GetContainerItemID; if movesSource == addon.Locations.Guild then - _GetContainerItemId = function(tabId, slotId) return addon:GetItemID(GetGuildBankItemLink(tabId, slotId)); end; + _GetContainerItemId = function(tabId, slotId) return addon:GetItemId(GetGuildBankItemLink(tabId, slotId)); end; end local _GetContainerItemInfo = GetContainerItemInfo; if movesSource == addon.Locations.Guild then diff -r 14a4d757d683 -r 31493364b163 Modules/Queue.lua --- a/Modules/Queue.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Modules/Queue.lua Sat Jan 08 01:39:04 2011 +0100 @@ -69,7 +69,7 @@ local itemLink = GetTradeSkillItemLink(i); if itemLink then - local itemId = addon:GetItemID(itemLink); + local itemId = addon:GetItemId(itemLink); if not itemId then -- If this isn't an item, it can only be an enchant instead itemId = tonumber(itemLink:match("|Henchant:([-0-9]+)|h")); diff -r 14a4d757d683 -r 31493364b163 Modules/Scanner.lua --- a/Modules/Scanner.lua Fri Jan 07 23:16:17 2011 +0100 +++ b/Modules/Scanner.lua Sat Jan 08 01:39:04 2011 +0100 @@ -70,7 +70,7 @@ -- A not equal-comparison should be quicker than a larger than-comparison local itemLink = GetGuildBankItemLink(tabId, slotId); - local itemId = itemLink and addon:GetItemID(itemLink); + local itemId = itemLink and addon:GetItemId(itemLink); local itemCount = itemLink and select(2, GetGuildBankItemInfo(tabId, slotId)); if itemLink and itemId and itemCount and itemCount > 0 then