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

Fix 30+ year old typo on SCAN_CONT (continuous) macro name

parent 1da4cafe
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -312,10 +312,10 @@ int sbbs_t::exec_msg(csi_t *csi) ...@@ -312,10 +312,10 @@ int sbbs_t::exec_msg(csi_t *csi)
scanallsubs(SCAN_NEW); scanallsubs(SCAN_NEW);
return(0); return(0);
case CS_MSG_CONT_SCAN: case CS_MSG_CONT_SCAN:
scansubs(SCAN_NEW|SCAN_CONST); scansubs(SCAN_NEW|SCAN_CONT);
return(0); return(0);
case CS_MSG_CONT_SCAN_ALL: case CS_MSG_CONT_SCAN_ALL:
scanallsubs(SCAN_NEW|SCAN_CONST); scanallsubs(SCAN_NEW|SCAN_CONT);
return(0); return(0);
case CS_MSG_BROWSE_SCAN: case CS_MSG_BROWSE_SCAN:
scansubs(SCAN_NEW|SCAN_BACK); scansubs(SCAN_NEW|SCAN_BACK);
......
...@@ -429,7 +429,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -429,7 +429,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
return(0); return(0);
} }
ZERO_VAR(msg); /* init to NULL, specify not-allocated */ ZERO_VAR(msg); /* init to NULL, specify not-allocated */
if(!(mode&SCAN_CONST)) if(!(mode&SCAN_CONT))
lncntr=0; lncntr=0;
if((msgs=getlastmsg(subnum,&last,0))==0) { if((msgs=getlastmsg(subnum,&last,0))==0) {
if(mode&(SCAN_NEW|SCAN_TOYOU)) if(mode&(SCAN_NEW|SCAN_TOYOU))
...@@ -549,7 +549,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -549,7 +549,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
smb_unlocksmbhdr(&smb); smb_unlocksmbhdr(&smb);
last=smb.status.last_msg; last=smb.status.last_msg;
if(mode&SCAN_CONST) { /* update action */ if(mode&SCAN_CONT) { /* update action */
getnodedat(cfg.node_num,&thisnode,1); getnodedat(cfg.node_num,&thisnode,1);
thisnode.action=NODE_RMSG; thisnode.action=NODE_RMSG;
putnodedat(cfg.node_num,&thisnode); putnodedat(cfg.node_num,&thisnode);
...@@ -559,7 +559,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -559,7 +559,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
action=NODE_RMSG; action=NODE_RMSG;
if(mode&(SCAN_CONST|SCAN_FIND) && sys_status&SS_ABORT) if(mode&(SCAN_CONT|SCAN_FIND) && sys_status&SS_ABORT)
break; break;
if(post==NULL) /* Been unloaded */ if(post==NULL) /* Been unloaded */
...@@ -662,7 +662,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -662,7 +662,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
free(buf); free(buf);
} }
if(mode&SCAN_CONST) if(mode&SCAN_CONT)
bprintf(text[ZScanPostHdr],ugrp,usub,smb.curmsg+1,smb.msgs); bprintf(text[ZScanPostHdr],ugrp,usub,smb.curmsg+1,smb.msgs);
if(!reads && mode) if(!reads && mode)
...@@ -754,7 +754,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -754,7 +754,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
} }
} }
else domsg=1; else domsg=1;
if(mode&SCAN_CONST) { if(mode&SCAN_CONT) {
if(smb.curmsg<smb.msgs-1) smb.curmsg++; if(smb.curmsg<smb.msgs-1) smb.curmsg++;
else done=1; else done=1;
continue; continue;
...@@ -837,7 +837,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -837,7 +837,7 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
current_msg=NULL; current_msg=NULL;
return(0); return(0);
case 'C': /* Continuous */ case 'C': /* Continuous */
mode|=SCAN_CONST; mode|=SCAN_CONT;
if(smb.curmsg<smb.msgs-1) smb.curmsg++; if(smb.curmsg<smb.msgs-1) smb.curmsg++;
else done=1; else done=1;
break; break;
...@@ -1596,14 +1596,14 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find) ...@@ -1596,14 +1596,14 @@ int sbbs_t::scanposts(uint subnum, int mode, const char *find)
if(post) if(post)
free(post); free(post);
if(!quit if(!quit
&& !(org_mode&(SCAN_CONST|SCAN_TOYOU|SCAN_FIND|SCAN_POLLS)) && !(cfg.sub[subnum]->misc&SUB_PONLY) && !(org_mode&(SCAN_CONT|SCAN_TOYOU|SCAN_FIND|SCAN_POLLS)) && !(cfg.sub[subnum]->misc&SUB_PONLY)
&& reads && can_user_post(&cfg, subnum, &useron, &client, /* reason: */NULL) && text[Post][0]) { && reads && can_user_post(&cfg, subnum, &useron, &client, /* reason: */NULL) && text[Post][0]) {
SAFEPRINTF2(str,text[Post],cfg.grp[cfg.sub[subnum]->grp]->sname SAFEPRINTF2(str,text[Post],cfg.grp[cfg.sub[subnum]->grp]->sname
,cfg.sub[subnum]->lname); ,cfg.sub[subnum]->lname);
if(!noyes(str)) if(!noyes(str))
postmsg(subnum,0,0); postmsg(subnum,0,0);
} }
if(!(org_mode&(SCAN_CONST|SCAN_TOYOU|SCAN_FIND)) if(!(org_mode&(SCAN_CONT|SCAN_TOYOU|SCAN_FIND))
&& !(subscan[subnum].cfg&SUB_CFG_NSCAN) && !noyes(text[AddSubToNewScanQ])) && !(subscan[subnum].cfg&SUB_CFG_NSCAN) && !noyes(text[AddSubToNewScanQ]))
subscan[subnum].cfg|=SUB_CFG_NSCAN; subscan[subnum].cfg|=SUB_CFG_NSCAN;
smb_close(&smb); smb_close(&smb);
......
...@@ -813,7 +813,7 @@ enum XFER_TYPE { /* Values for type in xfer_prot_select() */ ...@@ -813,7 +813,7 @@ enum XFER_TYPE { /* Values for type in xfer_prot_select() */
#define LOL_SIZE 81 /* Length of each logon list entry */ #define LOL_SIZE 81 /* Length of each logon list entry */
/* Bits in mode of scanposts() function */ /* Bits in mode of scanposts() function */
#define SCAN_CONST (1<<0) /* Continuous message scanning */ #define SCAN_CONT (1<<0) /* Continuous message scanning */
#define SCAN_NEW (1<<1) /* New scanning */ #define SCAN_NEW (1<<1) /* New scanning */
#define SCAN_BACK (1<<2) /* Scan the last message if no new */ #define SCAN_BACK (1<<2) /* Scan the last message if no new */
#define SCAN_TOYOU (1<<3) /* Scan for messages to you */ #define SCAN_TOYOU (1<<3) /* Scan for messages to you */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment