Mercurial > wow > itemauditor
diff Modules/Events.lua @ 81:64166ba5209a
Correct fix for bug 22. The bank needs to be considered and scanned if it is open, but not if the user is not using the bank
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 05 Aug 2010 20:21:05 -0700 |
parents | e7d287cc3b02 |
children | e2dab8e34b32 |
line wrap: on
line diff
--- a/Modules/Events.lua Thu Aug 05 19:39:00 2010 -0700 +++ b/Modules/Events.lua Thu Aug 05 20:21:05 2010 -0700 @@ -4,6 +4,10 @@ function ItemAuditor:OnEnable() self:RegisterEvent("MAIL_SHOW") self:RegisterEvent("UNIT_SPELLCAST_START") + + self:RegisterEvent("BANKFRAME_OPENED", 'BankFrameChanged') + self:RegisterEvent("BANKFRAME_CLOSED", 'BankFrameChanged') + ItemAuditor:UpdateCurrentInventory() self:WatchBags()