From 97b0638669c2ee5cb9a0c3f3da7889e59af507d7 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 21 Aug 2016 14:50:33 -0400 Subject: [PATCH] Small fix for custom class search, forgot the CustomSearch library.. DOH --- modules/search.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/search.lua b/modules/search.lua index 4bc30b7..ae3f7ec 100644 --- a/modules/search.lua +++ b/modules/search.lua @@ -5,9 +5,11 @@ local currentRealm = select(2, UnitFullName("player")) local GetItemInfo = _G["GetItemInfo"] local currentPlayer = UnitName("player") -local ItemSearch = LibStub("LibItemSearch-1.2") local bgSearch = CreateFrame("Frame","BagSync_SearchFrame", UIParent) +local customSearch = LibStub('CustomSearch-1.0') +local ItemSearch = LibStub("LibItemSearch-1.2") + local scanner = LibItemSearchTooltipScanner or CreateFrame('GameTooltip', 'LibItemSearchTooltipScanner', UIParent, 'GameTooltipTemplate') --add classes to the LibItemSearch-1.2 @@ -29,7 +31,7 @@ ItemSearch.Filters.class = { local text = _G[scanner:GetName() .. 'TextLeft' .. i]:GetText():lower() local textChk = string.find(text, pattern) - if textChk and Search:Find(search, _G[scanner:GetName() .. 'TextLeft' .. i]:GetText()) then + if textChk and customSearch:Find(search, _G[scanner:GetName() .. 'TextLeft' .. i]:GetText()) then return true end end -- 1.7.9.5