Skip to content
Snippets Groups Projects
Commit dd0e146a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If ForwardMailQ text.dat string is blank, don't enable the forward user option

This was a bug, pointed out on DOVE-Net by Basis (CONVOLUT).

However, this bug is not triggered unless SCFG->Message Options->Allow
Forwarding to NetMail is set to 'Yes' and the ForwardMailQ text.dat string was
blanked out.
parent 451019bc
No related branches found
No related tags found
No related merge requests found
Pipeline #8978 passed
...@@ -312,7 +312,7 @@ bool sbbs_t::newuser() ...@@ -312,7 +312,7 @@ bool sbbs_t::newuser()
break; break;
} }
useron.misc &= ~NETMAIL; useron.misc &= ~NETMAIL;
if ((cfg.sys_misc & SM_FWDTONET) && is_supported_netmail_addr(&cfg, useron.netmail) && yesno(text[ForwardMailQ])) if ((cfg.sys_misc & SM_FWDTONET) && is_supported_netmail_addr(&cfg, useron.netmail) && text[ForwardMailQ][0] && yesno(text[ForwardMailQ]))
useron.misc |= NETMAIL; useron.misc |= NETMAIL;
if (text[UserInfoCorrectQ][0] == 0 || yesno(text[UserInfoCorrectQ])) if (text[UserInfoCorrectQ][0] == 0 || yesno(text[UserInfoCorrectQ]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment