comparison 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
comparison
equal deleted inserted replaced
81:620ec5dc3cb4 82:b3b9220c91e6
575 self:Debug("MO_OPENING_MAIL (#" .. index .. ")"); 575 self:Debug("MO_OPENING_MAIL (#" .. index .. ")");
576 576
577 -- Notifiy other modules of opening 577 -- Notifiy other modules of opening
578 self:SendMessage("MO_OPENING_MAIL"); 578 self:SendMessage("MO_OPENING_MAIL");
579 579
580 if self.db.profile.keepFreeSpace > 0 and items > slotsAvailable then 580 if self.db.profile.keepFreeSpace > 0 and items and slotsAvailable and items > slotsAvailable then
581 -- If this mail contains more items than the space available, we must only take a few attachments 581 -- If this mail contains more items than the space available, we must only take a few attachments
582 582
583 for attachIndex = 1, ATTACHMENTS_MAX_RECEIVE do 583 for attachIndex = 1, ATTACHMENTS_MAX_RECEIVE do
584 if GetInboxItemLink(index, attachIndex) then 584 if GetInboxItemLink(index, attachIndex) then
585 -- If this attachment actually exists 585 -- If this attachment actually exists