From 0e028ac0c5b0e1242c705a635cb5c58e652453b9 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Fri, 26 Aug 2016 13:28:11 -0400 Subject: [PATCH] Small bugfix for spell or tradeskill links in chat --- xanTooltipIcon.lua | 2 +- xanTooltipIcon.toc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xanTooltipIcon.lua b/xanTooltipIcon.lua index 68b1545..4bb771e 100644 --- a/xanTooltipIcon.lua +++ b/xanTooltipIcon.lua @@ -59,7 +59,7 @@ local function hookTip(tooltip) tooltip:HookScript('OnTooltipSetItem', function(self) local name, link = self:GetItem() - if string.len(name) > 0 and link then --recipes return nil for GetItem() so check for it + if name and string.len(name) > 0 and link then --recipes return nil for GetItem() so check for it self.button.func(self, link) end end) diff --git a/xanTooltipIcon.toc b/xanTooltipIcon.toc index 979bfd6..b03fd61 100644 --- a/xanTooltipIcon.toc +++ b/xanTooltipIcon.toc @@ -2,6 +2,6 @@ ## Title: XanTooltipIcon ## Notes: Adds an icon to tooltips for achievement or item chat links. ## Author: Xruptor -## Version: 2.0 +## Version: 2.1 xanTooltipIcon.lua -- 1.7.9.5