Commit 559ce234 authored by deuce's avatar deuce
Browse files

Add a SCAN_MSGSONLY flag so that even if "Automatic New File Scan" is set

in the default user config, a scansubs(SCAN_ALL) will still not do a new
file scan.
parent 431bd194
......@@ -576,6 +576,8 @@ var SCAN_BACK =(1<<2); /* Display most recent message if none new */
var SCAN_TOYOU =(1<<3); /* Display messages to you only */
var SCAN_FIND =(1<<4); /* Find text in messages */
var SCAN_UNREAD =(1<<5); /* Display un-read messages to you only */
var SCAN_MSGSONLY =(1<<6); /* Do not do a new file scan even if the */
/* user enabled Automatic New File Scan */
/********************************************/
/********************************************/
......
......@@ -815,7 +815,9 @@ enum XFER_TYPE { /* Values for type in xfer_prot_select() */
#define SCAN_TOYOU (1<<3) /* Scan for messages to you */
#define SCAN_FIND (1<<4) /* Scan for text in messages */
#define SCAN_UNREAD (1<<5) /* Display un-read messages only */
#define SCAN_MSGSONLY (1<<6) /* Do not do a new file scan even if the
* user enabled Automatic New File Scan */
/* Bits in misc of chan_t */
#define CHAN_PW (1<<0) /* Can be password protected */
#define CHAN_GURU (1<<1) /* Guru joins empty channel */
......
......@@ -221,7 +221,7 @@ void sbbs_t::scanallsubs(long mode)
return;
}
bprintf(text[MessageScanComplete],subs_scanned);
if(mode&SCAN_NEW && !(mode&(SCAN_BACK|SCAN_TOYOU))
if(mode&SCAN_NEW && !(mode&(SCAN_MSGSONLY|SCAN_BACK|SCAN_TOYOU))
&& useron.misc&ANFSCAN && !(useron.rest&FLAG('T'))) {
xfer_cmds++;
scanalldirs(FL_ULTIME);
......
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