Commit 92cefbca authored by rswindell's avatar rswindell
Browse files

Fix the erroneous "You have no HAM." message when toggle between SPAM

visibility modes and the user has more SPAM than HAM.
parent 11aab1d4
......@@ -764,12 +764,12 @@ void sbbs_t::readmail(uint usernumber, int which)
case 'V': /* View SPAM (toggle) */
{
domsg = false;
int spam = getmail(&cfg, usernumber, /* Sent: */FALSE, /* SPAM */TRUE);
int spam = getmail(&cfg, usernumber, /* Sent: */FALSE, /* SPAM-ONLY */TRUE);
if(!spam) {
bprintf(text[NoMailWaiting], "SPAM");
break;
}
if(spam >= (int)smb.msgs) {
if(spam >= getmail(&cfg, usernumber, /* Sent: */FALSE, /* SPAM-ONLY */FALSE)) {
bprintf(text[NoMailWaiting], "HAM");
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