Quantcast

Update broker info if sets are updated/created/deleted

Adrian L Lange [09-13-09 - 02:35]
Update broker info if sets are updated/created/deleted
Filename
Broker_Equipment.lua
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index 3599c44..eac331b 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -164,6 +164,7 @@ function addon:ADDON_LOADED(event, name)
 	self.displayMode = 'MENU'

 	self:UNIT_INVENTORY_CHANGED()
+	self:RegisterEvent('EQUIPMENT_SETS_CHANGED')
 	self:RegisterEvent('UNIT_INVENTORY_CHANGED')
 	self:RegisterEvent('VARIABLES_LOADED')
 	self:UnregisterEvent(event)
@@ -196,5 +197,6 @@ function addon:UNIT_INVENTORY_CHANGED(event, unit)
 	end
 end

+addon.EQUIPMENT_SETS_CHANGED = addon.UNIT_INVENTORY_CHANGED
 addon:RegisterEvent('ADDON_LOADED')
 addon:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end)