Mercurial > wow > mailopener
diff Modules/OpenAll.lua @ 82:b3b9220c91e6
My own tests did not suffice, error when opening cash mail.
| author | Zerotorescue |
|---|---|
| date | Thu, 16 Sep 2010 18:28:28 +0200 |
| parents | 136aa3dd4dda |
| children | 0a8e4a93316d |
line wrap: on
line diff
--- a/Modules/OpenAll.lua Thu Sep 16 17:25:05 2010 +0200 +++ b/Modules/OpenAll.lua Thu Sep 16 18:28:28 2010 +0200 @@ -577,7 +577,7 @@ -- Notifiy other modules of opening self:SendMessage("MO_OPENING_MAIL"); - if self.db.profile.keepFreeSpace > 0 and items > slotsAvailable then + if self.db.profile.keepFreeSpace > 0 and items and slotsAvailable and items > slotsAvailable then -- If this mail contains more items than the space available, we must only take a few attachments for attachIndex = 1, ATTACHMENTS_MAX_RECEIVE do
