diff --git a/MyBagsCache/MyBagsCache.lua b/MyBagsCache/MyBagsCache.lua index 30db8d6..fb52e21 100644 --- a/MyBagsCache/MyBagsCache.lua +++ b/MyBagsCache/MyBagsCache.lua @@ -14,17 +14,7 @@ local function GetItemInfoFromLink(l) local c, t, id, il, n = select(3, strfind(l, "|cff(%x+)|H(%l+):(%-?%d+)([^|]+)|h%[(.-)%]|h|r")) - --[[ - return n, c, id .. il, id, t - - if (strfind(l, "Hitem")) then - c, id ,il, n = select(3, strfind(l, "|cff(%x+)|Hitem:(%-?%d+)([^|]+)|h%[(.-)%]|h|r")) - else - if (strfind(l, "Hbattlepet")) then - c, id ,il, n = select(3, strfind(l, "|cff(%x+)|Hbattlepet:(%-?%d+)([^|]+)|h%[(.-)%]|h|r")) - end - end - ]] + -- return n, c, id .. il, id, t return n, c, id .. il, id end