From 6c09b0f9208aec6429ab67ea546eef07595f2752 Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 13 May 2009 21:57:54 +0000 Subject: [PATCH] Fix datamine concat issue. --- ARLDatamine.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 9365392..8c012c8 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -141,7 +141,7 @@ function addon:ScanSkillLevelData(autoscan) end if (entryfound) then - self:DisplayTextDump(nil, nil, tconcat(outputtable,"\n")) + --self:DisplayTextDump(nil, nil, tconcat(outputtext,"\n")) end -- Reset the filters to what they were before @@ -198,7 +198,9 @@ function addon:ScanTrainerData(autoscan) local name = GetTrainerServiceInfo(i) t[name] = true end + local outputtext = {} + -- Dump out trainer info tinsert(outputtext, L["DATAMINER_TRAINER_INFO"]:format(targetname, targetID)) @@ -247,6 +249,7 @@ function addon:ScanTrainerData(autoscan) tinsert(noteach,i) end end + end if (teachflag) then @@ -265,12 +268,12 @@ function addon:ScanTrainerData(autoscan) end end - if ((teachflag) or (noteachflag)) then - self:DisplayTextDump(nil, nil, tconcat(outputtable,"\n")) - end - tinsert(outputtext, "Trainer Acquire Scan Complete.") + --if ((teachflag) or (noteachflag)) then + self:DisplayTextDump(nil, nil, tconcat(outputtext,"\n")) + --end + -- Reset the filters to what they were before SetTrainerServiceTypeFilter("available", avail or 0) SetTrainerServiceTypeFilter("unavailable", unavail or 0) -- 1.7.9.5