From 237fe00ec1d963a6900bb3fb95ded630d72b46de Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 23 Jun 2009 19:16:21 +0000 Subject: [PATCH] Add the item not in cache message to the scan result copy/paste because I've spent hours debugging shit and no one has told me that items aren't in the fucking cache when they did the fucking scan. --- ARLDatamine.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 27a9737..ef0900e 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1089,6 +1089,8 @@ function addon:TooltipScanRecipe(spellid,is_vendor,is_largescan) if (RECIPE_NAMES[matchtext]) then self:ScanToolTip(recipe_name,recipe_list,reverse_lookup,is_vendor,false) + local t = {} + -- We have a reverse look-up for the item which creates the spell (aka the recipe itself) local itemid = SPELL_ITEM[spellid] if (itemid) then @@ -1097,13 +1099,16 @@ function addon:TooltipScanRecipe(spellid,is_vendor,is_largescan) ARLDatamineTT:SetHyperlink("item:" .. itemid .. ":0:0:0:0:0:0:0") self:ScanToolTip(recipe_name,recipe_list,reverse_lookup,is_vendor,true) else - self:Print("Item ID: " .. itemid .. " not in cache. If you have Querier use /iq " .. itemid) + tinsert(t,"Item ID: " .. itemid .. " not in cache. If you have Querier use /iq " .. itemid) end end + + -- Add the flag scan to the table + tinsert(t,self:PrintScanResults()) if (is_largescan) then - return self:PrintScanResults() + return tconcat(t,"\n") else - self:Print(self:PrintScanResults()) + self:Print(tconcat(t,"\n")) end end -- 1.7.9.5