diff options
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index e04710218..b15987018 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1591,11 +1591,14 @@ int intif_parse_Mail_return(int fd) { int i; ARR_FIND(0, MAIL_MAX_INBOX, i, sd->mail.inbox.msg[i].id == mail_id); - if (i < MAIL_MAX_INBOX) + if( i < MAIL_MAX_INBOX ) { memset(&sd->mail.inbox.msg[i], 0, sizeof(struct mail_message)); sd->mail.inbox.amount--; } + + if( sd->mail.inbox.full ) + intif_Mail_requestinbox(sd->status.char_id, 1); // Free space is available for new mails } clif_Mail_return(sd->fd, mail_id, fail); |