Mercurial > wow > itemauditor
comparison Modules/Events.lua @ 24:554b30908b33 v0.1
- Fixed a bug with the mail where items get recorded by the mail scanner and the bag scanner.
- Fixed some minor issues not visible to the user.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Sun, 11 Jul 2010 09:24:33 -0700 |
| parents | 819bfdc5d73c |
| children | 75d917ccd942 |
comparison
equal
deleted
inserted
replaced
| 23:819bfdc5d73c | 24:554b30908b33 |
|---|---|
| 4 local utils = addonTable.utils | 4 local utils = addonTable.utils |
| 5 | 5 |
| 6 function addon:PLAYER_ENTERING_WORLD() | 6 function addon:PLAYER_ENTERING_WORLD() |
| 7 self:RegisterEvent("MAIL_SHOW") | 7 self:RegisterEvent("MAIL_SHOW") |
| 8 self:RegisterEvent("UNIT_SPELLCAST_START") | 8 self:RegisterEvent("UNIT_SPELLCAST_START") |
| 9 addon:UpdateCurrentInventory() | |
| 9 self:WatchBags() | 10 self:WatchBags() |
| 10 | 11 |
| 11 -- addon:ConvertItems() | 12 -- addon:ConvertItems() |
| 12 end | 13 end |
| 13 | 14 |
| 14 function addon:MAIL_SHOW() | 15 function addon:MAIL_SHOW() |
| 15 self:Debug("MAIL_SHOW") | 16 self:Debug("MAIL_SHOW") |
| 17 addon:UpdateCurrentInventory() | |
| 16 self.lastMailScan = self:ScanMail() | 18 self.lastMailScan = self:ScanMail() |
| 17 | 19 |
| 18 self:UnregisterEvent("MAIL_SHOW") | 20 self:UnregisterEvent("MAIL_SHOW") |
| 19 self:RegisterEvent("MAIL_CLOSED") | 21 self:RegisterEvent("MAIL_CLOSED") |
| 20 self:RegisterEvent("MAIL_INBOX_UPDATE") | 22 self:RegisterEvent("MAIL_INBOX_UPDATE") |
