From 9c865a4d17751cd99c4b7c97a380bd5385e7359c Mon Sep 17 00:00:00 2001 From: torhal Date: Thu, 11 Jun 2009 18:31:44 +0000 Subject: [PATCH] In addon:TooltipScanRecipe(): Call strlower() on the initial text, since the strmatch() may return nil. --- ARLDatamine.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 274d230..0d1e780 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1982,8 +1982,8 @@ function addon:TooltipScanRecipe(spellid) ARLDatamineTT:SetHyperlink(recipe_link) -- Load the tooltip -- Lets check to see if it's a recipe tooltip - local text = _G["ARLDatamineTTTextLeft1"]:GetText() - local matchtext = strlower(strmatch(text, "%a+: ")) + local text = strlower(_G["ARLDatamineTTTextLeft1"]:GetText()) + local matchtext = strmatch(text, "%a+: ") -- Check to see if we're dealing with a recipe if (RECIPE_NAMES[matchtext]) then -- 1.7.9.5