From 0eee9a767a089415398db639f01835549502e357 Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 13 May 2009 22:15:18 +0000 Subject: [PATCH] Fix a nil error. --- ARLDatamine.lua | 15 ++++++++------- ARLFrame.lua | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 8c012c8..7738f55 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -140,8 +140,10 @@ function addon:ScanSkillLevelData(autoscan) end end + tinsert(outputtable,"Trainer Skill Level Scan Complete.") + if (entryfound) then - --self:DisplayTextDump(nil, nil, tconcat(outputtext,"\n")) + self:DisplayTextDump(nil, nil, tconcat(outputtext,"\n")) end -- Reset the filters to what they were before @@ -149,7 +151,6 @@ function addon:ScanSkillLevelData(autoscan) SetTrainerServiceTypeFilter("unavailable", unavail or 0) SetTrainerServiceTypeFilter("used", used or 0) - self:Print("Trainer Skill Level Scan Complete.") elseif (not autoscan) then self:Print(L["DATAMINER_SKILLLEVEL_ERROR"]) end @@ -270,9 +271,9 @@ function addon:ScanTrainerData(autoscan) tinsert(outputtext, "Trainer Acquire Scan Complete.") - --if ((teachflag) or (noteachflag)) then + if ((teachflag) or (noteachflag)) then self:DisplayTextDump(nil, nil, tconcat(outputtext,"\n")) - --end + end -- Reset the filters to what they were before SetTrainerServiceTypeFilter("available", avail or 0) @@ -312,9 +313,9 @@ function addon:GenerateLinks() bitmap[51302] = "e+//////////////v//P+f///3///7/9f9//////////f///////HQ5+////B4//+///////5///////PA/Eg//" -- LW bitmap[51304] = "2//v//////f////3//v///////6//////////9////X" -- Alchemy --bitmap[51300] = "" -- Blacksmithing - -- Tailoring - -- JC - -- Inscription + --bitmap[51309] = "" -- Tailoring + --bitmap[51311] = "" -- JC 489 + --bitmap[45363] = "" -- Inscription --bitmap[51313] = "4//////////7///////////w//++/9vn7///////3P/t/n//BAB" -- Enchanting bitmap[51313] = "4//////////7///////////w//++/9vn7///////3P/t/n//BAD" -- Enchanting diff --git a/ARLFrame.lua b/ARLFrame.lua index 5f4d97e..0691adc 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -4610,7 +4610,7 @@ function addon:DisplayTextDump(RecipeDB, profession, text) local textdump -- If we don't send in a RecipeDB and profession, just dump the text - if (not RecipeDB and profession) then + if (not RecipeDB and not profession) then textdump = text else textdump = self:GetTextDump(RecipeDB,profession) -- 1.7.9.5