Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
92cefbca
Commit
92cefbca
authored
Nov 14, 2017
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/readmail.cpp
src/sbbs3/readmail.cpp
+2
-2
No files found.
src/sbbs3/readmail.cpp
View file @
92cefbca
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment