Mercurial > wow > mailopener
comparison Modules/FailSafe.lua @ 41:2b2bea9c7446
Fixed an error when disabling the FailSafe module.
| author | Zerotorescue |
|---|---|
| date | Sat, 11 Sep 2010 18:43:14 +0200 |
| parents | 90d58723ac0a |
| children | 8168280420ae |
comparison
equal
deleted
inserted
replaced
| 40:b3b72b1549a3 | 41:2b2bea9c7446 |
|---|---|
| 29 -- Even though Ace can unregister our events it's neater to do it manually too | 29 -- Even though Ace can unregister our events it's neater to do it manually too |
| 30 function mod:OnDisable() | 30 function mod:OnDisable() |
| 31 self:Debug("OnDisable"); | 31 self:Debug("OnDisable"); |
| 32 | 32 |
| 33 self:UnregisterEvent("MAIL_SHOW"); | 33 self:UnregisterEvent("MAIL_SHOW"); |
| 34 | |
| 35 self:Stop(); | |
| 36 end | 34 end |
| 37 | 35 |
| 38 function mod:MAIL_SHOW() | 36 function mod:MAIL_SHOW() |
| 39 self:Debug("MAIL_SHOW"); | 37 self:Debug("MAIL_SHOW"); |
| 40 | 38 |
