# HG changeset patch # User Zerotorescue # Date 1288286433 -7200 # Node ID db57cd9273f1c2aa9a449f16a5ad7a8b7240a72e # Parent 7d7aaa3fbe9403608e748be3bdf7e39dc4c1feec Fixed premade item data update check. diff -r 7d7aaa3fbe94 -r db57cd9273f1 Core.lua --- a/Core.lua Thu Oct 28 19:14:30 2010 +0200 +++ b/Core.lua Thu Oct 28 19:20:33 2010 +0200 @@ -103,6 +103,17 @@ self:PremadeGroupsCheck(); end +local function InGroup(itemId) + -- Go through all groups to see if this item is already somewhere + for groupName, values in pairs(addon.db.global.groups) do + if values.items and values.items[itemId] then + return groupName; + end + end + + return; +end + function addon:PremadeGroupsCheck(updateGroupName, updateKey, accept) -- Compare the current premade groups with those used, notify about changes if addon.defaultGroups then @@ -885,17 +896,6 @@ return true; end -local function InGroup(itemId) - -- Go through all groups to see if this item is already somewhere - for groupName, values in pairs(addon.db.global.groups) do - if values.items and values.items[itemId] then - return groupName; - end - end - - return; -end - local function AddToGroup(groupName, itemId) if InGroup(itemId) then return false;