mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
skin: check for existing itemlink in mail
This commit is contained in:
@@ -111,8 +111,8 @@ pfUI:RegisterSkin("Mailbox", "vanilla:tbc", function ()
|
||||
|
||||
hooksecurefunc("InboxFrame_OnClick", function(index)
|
||||
local name = GetInboxItem(index)
|
||||
if name then
|
||||
local link = GetItemLinkByName(name)
|
||||
local link = name and GetItemLinkByName(name)
|
||||
if link then
|
||||
local _,_,linkstr = string.find(link, "(item:%d+:%d+:%d+:%d+)")
|
||||
local _,_,quality = GetItemInfo(linkstr)
|
||||
local r,g,b = GetItemQualityColor(quality)
|
||||
|
||||
Reference in New Issue
Block a user