fix unread count

This commit is contained in:
Andrew Pamment 2018-02-23 14:31:31 +10:00
parent 7ca1148ff8
commit 4e195fe0e3

View File

@ -3157,7 +3157,7 @@ void do_mail_scan(struct user_record *user, int oldscan, int personal) {
} }
unread_count++; unread_count++;
} }
if (msghs->msgs[msghs->msg_count-1]->msg_no > jlr.HighReadMsg) { if (unread_count > 0) {
if (oldscan) { if (oldscan) {
s_printf(get_string(141), j, conf.mail_conferences[i]->mail_areas[j]->name, unread_count); s_printf(get_string(141), j, conf.mail_conferences[i]->mail_areas[j]->name, unread_count);
lines++; lines++;