Skip to content
Snippets Groups Projects
Commit 19193299 authored by rswindell's avatar rswindell
Browse files

Treat disconnect at getkeys() prompts the same as Quit/Abort.

parent 3b989049
No related branches found
No related tags found
No related merge requests found
...@@ -425,7 +425,7 @@ void sbbs_t::qwk_sec() ...@@ -425,7 +425,7 @@ void sbbs_t::qwk_sec()
ch=(char)getkeys(str,0); ch=(char)getkeys(str,0);
if(ch>' ') if(ch>' ')
logch(ch,0); logch(ch,0);
if(sys_status&SS_ABORT || ch=='Q' || ch==CR) if(sys_status&SS_ABORT || ch=='Q' || ch==CR || !online)
break; break;
if(ch=='?') { if(ch=='?') {
if((useron.misc&(WIP|RIP|HTML) || !(useron.misc&EXPERT)) if((useron.misc&(WIP|RIP|HTML) || !(useron.misc&EXPERT))
...@@ -491,7 +491,7 @@ void sbbs_t::qwk_sec() ...@@ -491,7 +491,7 @@ void sbbs_t::qwk_sec()
,useron.qwk&QWK_EXT ? text[Yes]:text[No]); ,useron.qwk&QWK_EXT ? text[Yes]:text[No]);
bputs(text[UserDefaultsWhich]); bputs(text[UserDefaultsWhich]);
ch=(char)getkeys("AEDFIOQTYMNCXZV",0); ch=(char)getkeys("AEDFIOQTYMNCXZV",0);
if(sys_status&SS_ABORT || !ch || ch=='Q') if(sys_status&SS_ABORT || !ch || ch=='Q' || !online)
break; break;
switch(ch) { switch(ch) {
case 'A': case 'A':
...@@ -573,7 +573,7 @@ void sbbs_t::qwk_sec() ...@@ -573,7 +573,7 @@ void sbbs_t::qwk_sec()
sprintf(tmp,"%c",cfg.prot[i]->mnemonic); sprintf(tmp,"%c",cfg.prot[i]->mnemonic);
strcat(tmp2,tmp); } strcat(tmp2,tmp); }
ch=(char)getkeys(tmp2,0); ch=(char)getkeys(tmp2,0);
if(ch=='Q' || sys_status&SS_ABORT) { if(ch=='Q' || sys_status&SS_ABORT || !online) {
for(i=0;i<cfg.total_subs;i++) for(i=0;i<cfg.total_subs;i++)
subscan[i].ptr=sav_ptr[i]; /* re-load saved pointers */ subscan[i].ptr=sav_ptr[i]; /* re-load saved pointers */
last_ns_time=ns_time; last_ns_time=ns_time;
...@@ -675,7 +675,7 @@ void sbbs_t::qwk_sec() ...@@ -675,7 +675,7 @@ void sbbs_t::qwk_sec()
strcat(tmp2,tmp); } strcat(tmp2,tmp); }
ungetkey(useron.prot); ungetkey(useron.prot);
ch=(char)getkeys(tmp2,0); ch=(char)getkeys(tmp2,0);
if(ch=='Q' || sys_status&SS_ABORT) { if(ch=='Q' || sys_status&SS_ABORT || !online) {
for(i=0;i<cfg.total_subs;i++) for(i=0;i<cfg.total_subs;i++)
subscan[i].ptr=sav_ptr[i]; /* re-load saved pointers */ subscan[i].ptr=sav_ptr[i]; /* re-load saved pointers */
last_ns_time=ns_time; last_ns_time=ns_time;
...@@ -749,7 +749,7 @@ void sbbs_t::qwk_sec() ...@@ -749,7 +749,7 @@ void sbbs_t::qwk_sec()
sprintf(tmp,"%c",cfg.prot[i]->mnemonic); sprintf(tmp,"%c",cfg.prot[i]->mnemonic);
strcat(tmp2,tmp); } strcat(tmp2,tmp); }
ch=(char)getkeys(tmp2,0); ch=(char)getkeys(tmp2,0);
if(ch=='Q' || sys_status&SS_ABORT) if(ch=='Q' || sys_status&SS_ABORT || !online)
continue; continue;
for(i=0;i<cfg.total_prots;i++) for(i=0;i<cfg.total_prots;i++)
if(cfg.prot[i]->ulcmd[0] && cfg.prot[i]->mnemonic==ch if(cfg.prot[i]->ulcmd[0] && cfg.prot[i]->mnemonic==ch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment