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

White-space changes only

parent b1522b36
Branches
Tags
No related merge requests found
...@@ -173,7 +173,7 @@ void sbbs_t::nodesync(bool clearline) ...@@ -173,7 +173,7 @@ void sbbs_t::nodesync(bool clearline)
logline(LOG_NOTICE,nulstr,"Interrupted"); logline(LOG_NOTICE,nulstr,"Interrupted");
hangup(); hangup();
nodesync_inside=0; nodesync_inside=0;
return; return;
} }
if(thisnode.misc&NODE_LCHAT) { // pulled into local chat with sysop if(thisnode.misc&NODE_LCHAT) { // pulled into local chat with sysop
...@@ -194,14 +194,14 @@ void sbbs_t::nodesync(bool clearline) ...@@ -194,14 +194,14 @@ void sbbs_t::nodesync(bool clearline)
if(getnodedat(cfg.node_num, &thisnode, true)) { if(getnodedat(cfg.node_num, &thisnode, true)) {
thisnode.action = action; thisnode.action = action;
thisnode.misc &= ~NODE_FCHAT; thisnode.misc &= ~NODE_FCHAT;
putnodedat(cfg.node_num, &thisnode); putnodedat(cfg.node_num, &thisnode);
} }
} }
if(sys_status&SS_USERON && memcmp(&nodesync_user,&useron,sizeof(user_t))) { if(sys_status&SS_USERON && memcmp(&nodesync_user,&useron,sizeof(user_t))) {
getusrdirs(); getusrdirs();
getusrsubs(); getusrsubs();
memcpy(&nodesync_user,&useron,sizeof(nodesync_user)); memcpy(&nodesync_user,&useron,sizeof(nodesync_user));
} }
if(sys_status&SS_USERON && online && (timeleft/60)<(5-timeleft_warn) if(sys_status&SS_USERON && online && (timeleft/60)<(5-timeleft_warn)
...@@ -210,7 +210,7 @@ void sbbs_t::nodesync(bool clearline) ...@@ -210,7 +210,7 @@ void sbbs_t::nodesync(bool clearline)
if(!(sys_status&SS_MOFF)) { if(!(sys_status&SS_MOFF)) {
attr(LIGHTGRAY); attr(LIGHTGRAY);
bprintf(text[OnlyXminutesLeft] bprintf(text[OnlyXminutesLeft]
,((ushort)timeleft/60)+1,(timeleft/60) ? "s" : nulstr); ,((ushort)timeleft/60)+1,(timeleft/60) ? "s" : nulstr);
} }
} }
...@@ -264,7 +264,7 @@ bool sbbs_t::getnmsg(bool clearline) ...@@ -264,7 +264,7 @@ bool sbbs_t::getnmsg(bool clearline)
if(clearline) if(clearline)
this->clearline(); this->clearline();
else if(column) else if(column)
CRLF; CRLF;
putmsg(buf,P_NOATCODES); putmsg(buf,P_NOATCODES);
free(buf); free(buf);
...@@ -295,8 +295,8 @@ bool sbbs_t::getnodeext(uint number, char *ext) ...@@ -295,8 +295,8 @@ bool sbbs_t::getnodeext(uint number, char *ext)
for(count=0;count<LOOP_NODEDAB;count++) { for(count=0;count<LOOP_NODEDAB;count++) {
if(count) if(count)
mswait(100); mswait(100);
if(lock(node_ext,(long)number*128L,128)!=0) if(lock(node_ext,(long)number*128L,128)!=0)
continue; continue;
lseek(node_ext,(long)number*128L,SEEK_SET); lseek(node_ext,(long)number*128L,SEEK_SET);
rd=read(node_ext,ext,128); rd=read(node_ext,ext,128);
unlock(node_ext,(long)number*128L,128); unlock(node_ext,(long)number*128L,128);
...@@ -314,7 +314,7 @@ bool sbbs_t::getnodeext(uint number, char *ext) ...@@ -314,7 +314,7 @@ bool sbbs_t::getnodeext(uint number, char *ext)
if(count>(LOOP_NODEDAB/2)) { if(count>(LOOP_NODEDAB/2)) {
SAFEPRINTF2(str,"NODE.EXB (node %d) COLLISION - Count: %d" SAFEPRINTF2(str,"NODE.EXB (node %d) COLLISION - Count: %d"
,number+1, count); ,number+1, count);
logline("!!",str); logline("!!",str);
} }
return true; return true;
...@@ -338,8 +338,8 @@ bool sbbs_t::getsmsg(int usernumber, bool clearline) ...@@ -338,8 +338,8 @@ bool sbbs_t::getsmsg(int usernumber, bool clearline)
&& (node.status==NODE_INUSE || node.status==NODE_QUIET) && (node.status==NODE_INUSE || node.status==NODE_QUIET)
&& node.misc&NODE_MSGW) && node.misc&NODE_MSGW)
node.misc&=~NODE_MSGW; node.misc&=~NODE_MSGW;
putnodedat(i,&node); putnodedat(i,&node);
} }
} }
if((buf = readsmsg(&cfg, usernumber)) == NULL) if((buf = readsmsg(&cfg, usernumber)) == NULL)
...@@ -377,14 +377,14 @@ int sbbs_t::whos_online(bool listself) ...@@ -377,14 +377,14 @@ int sbbs_t::whos_online(bool listself)
if(i==cfg.node_num) { if(i==cfg.node_num) {
if(listself) if(listself)
printnodedat(i,&node); printnodedat(i,&node);
continue; continue;
} }
if(node.status==NODE_INUSE || (SYSOP && node.status==NODE_QUIET)) { if(node.status==NODE_INUSE || (SYSOP && node.status==NODE_QUIET)) {
printnodedat(i,&node); printnodedat(i,&node);
if(!lastnodemsg) if(!lastnodemsg)
lastnodemsg=i; lastnodemsg=i;
j++; j++;
} }
} }
if(!j) if(!j)
bputs(text[NoOtherActiveNodes]); bputs(text[NoOtherActiveNodes]);
...@@ -404,7 +404,7 @@ void sbbs_t::nodelist(void) ...@@ -404,7 +404,7 @@ void sbbs_t::nodelist(void)
bputs(text[NodeLstHdr]); bputs(text[NodeLstHdr]);
for(int i=1;i<=cfg.sys_nodes && i<=cfg.sys_lastnode;i++) { for(int i=1;i<=cfg.sys_nodes && i<=cfg.sys_lastnode;i++) {
getnodedat(i,&node); getnodedat(i,&node);
printnodedat(i,&node); printnodedat(i,&node);
} }
} }
...@@ -477,13 +477,13 @@ void sbbs_t::printnodedat(uint number, node_t* node) ...@@ -477,13 +477,13 @@ void sbbs_t::printnodedat(uint number, node_t* node)
case NODE_QUIET: case NODE_QUIET:
if(!SYSOP) { if(!SYSOP) {
bputs(text[NodeStatusWaitingForCall]); bputs(text[NodeStatusWaitingForCall]);
break; break;
} }
case NODE_INUSE: case NODE_INUSE:
if(node->misc&NODE_EXT) { if(node->misc&NODE_EXT) {
getnodeext(number,tmp); getnodeext(number,tmp);
bputs(tmp); bputs(tmp);
break; break;
} }
attr(cfg.color[clr_nodeuser]); attr(cfg.color[clr_nodeuser]);
if(node->misc&NODE_ANON && !SYSOP) if(node->misc&NODE_ANON && !SYSOP)
...@@ -526,7 +526,7 @@ void sbbs_t::printnodedat(uint number, node_t* node) ...@@ -526,7 +526,7 @@ void sbbs_t::printnodedat(uint number, node_t* node)
if(SYSOP || chk_ar(cfg.xtrn[i]->ar,&useron,&client)) if(SYSOP || chk_ar(cfg.xtrn[i]->ar,&useron,&client))
bputs(cfg.xtrn[node->aux-1]->name); bputs(cfg.xtrn[node->aux-1]->name);
else else
bputs("external program"); bputs("external program");
} }
break; break;
case NODE_DFLT: case NODE_DFLT:
...@@ -562,8 +562,8 @@ void sbbs_t::printnodedat(uint number, node_t* node) ...@@ -562,8 +562,8 @@ void sbbs_t::printnodedat(uint number, node_t* node)
if(node->aux&0x1f00) { /* password */ if(node->aux&0x1f00) { /* password */
outchar('*'); outchar('*');
if(SYSOP) if(SYSOP)
bprintf(" %s",unpackchatpass(tmp,node)); bprintf(" %s",unpackchatpass(tmp,node));
} }
} }
else else
bputs("in multinode global chat channel"); bputs("in multinode global chat channel");
...@@ -594,19 +594,20 @@ void sbbs_t::printnodedat(uint number, node_t* node) ...@@ -594,19 +594,20 @@ void sbbs_t::printnodedat(uint number, node_t* node)
break; break;
default: default:
bputs(ultoa(node->action,tmp,10)); bputs(ultoa(node->action,tmp,10));
break; } break;
}
bputs(node_connection_desc(this, node->connection, tmp)); bputs(node_connection_desc(this, node->connection, tmp));
if(node->action==NODE_DLNG) { if(node->action==NODE_DLNG) {
if(cfg.sys_misc&SM_MILITARY) { if(cfg.sys_misc&SM_MILITARY) {
hour=node->aux/60; hour=node->aux/60;
mer[0]=0; mer[0]=0;
} }
else if((node->aux/60)>=12) { else if((node->aux/60)>=12) {
if(node->aux/60==12) if(node->aux/60==12)
hour=12; hour=12;
else else
hour=(node->aux/60)-12; hour=(node->aux/60)-12;
strcpy(mer,"pm"); strcpy(mer,"pm");
} }
else { else {
if((node->aux/60)==0) /* 12 midnite */ if((node->aux/60)==0) /* 12 midnite */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment