Commit 50d4ebf5 authored by rswindell's avatar rswindell
Browse files

Set the current node action in sbbs_t::readmail() earlier, before the

"read mail" module is executed, so that the node action is correct more often.
parent 8d8ee163
......@@ -71,6 +71,14 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
smbmsg_t msg;
char search_str[128] = "";
if(which==MAIL_SENT)
act=NODE_RSML;
else if(which==MAIL_ALL)
act=NODE_SYSP;
else
act=NODE_RMAL;
action=act;
if(cfg.readmail_mod[0] && !readmail_inside) {
char cmdline[256];
......@@ -119,13 +127,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
last=smb.status.last_msg;
if(which==MAIL_SENT)
act=NODE_RSML;
else if(which==MAIL_ALL)
act=NODE_SYSP;
else
act=NODE_RMAL;
action=act;
const char* order = (lm_mode&LM_REVERSE) ? "newest" : "oldest";
if(smb.msgs>1 && which!=MAIL_ALL) {
if(which==MAIL_SENT)
......
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