# HG changeset patch # User Zerotorescue # Date 1284654508 -7200 # Node ID b3b9220c91e631adb1563580a76ccebd61679344 # Parent 620ec5dc3cb41ad4024b6ef2ccf8c9d15e90c328 My own tests did not suffice, error when opening cash mail. diff -r 620ec5dc3cb4 -r b3b9220c91e6 Modules/OpenAll.lua --- 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