Commit e8965220 authored by rswindell's avatar rswindell
Browse files

getmail() can only check the presence of an attribute flag currently

(not the absense), so we need to call it twice to find out if there are
any unread messages for the user.
parent 2cb9a73b
......@@ -800,7 +800,8 @@ void sbbs_t::readmail(uint usernumber, int which)
{
domsg = false;
if(!(lm_mode&LM_UNREAD)) {
if(!getmail(&cfg, usernumber, /* Sent: */FALSE, /* attr: */0)) {
if(getmail(&cfg, usernumber, /* Sent: */FALSE, /* attr: */0)
== getmail(&cfg, usernumber, /* Sent: */FALSE, /* attr: */MSG_READ)) {
bprintf(text[NoMailWaiting], "Un-read");
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment