Skip to content
Snippets Groups Projects
Commit e5c6b732 authored by deuce's avatar deuce
Browse files

Fix bug with validation code...

Old behaviour:
Load message.
Set message attribute to VALIDATED.
Load message.
Save message.
parent 8ff2afb3
No related branches found
No related tags found
No related merge requests found
......@@ -644,11 +644,11 @@ int sbbs_t::scanposts(uint subnum, long mode, const char *find)
uint16_t msg_attr = msg.hdr.attr;
SAFEPRINTF2(str,text[ValidatePostQ],msg.hdr.number,msg.subj);
if(!noyes(str))
msg.hdr.attr|=MSG_VALIDATED;
msg_attr|=MSG_VALIDATED;
else {
SAFEPRINTF2(str,text[DeletePostQ],msg.hdr.number,msg.subj);
if(yesno(str))
msg.hdr.attr|=MSG_DELETE;
msg_attr|=MSG_DELETE;
}
if(msg_attr!=msg.hdr.attr) {
if(msg.total_hfields)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment