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

Disable the prompt on 'Q'uit part of Quicksilver's mod (rev 1.218) by default

(enable by defining SBBSCON_PROMPT_ON_QUIT) since it doesn't work right
on an active BBS (the question prompt is quickly erased by BBS log output).
parent f0ba58a5
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -1950,6 +1950,7 @@ int main(int argc, char** argv)
printf("%c\n",ch);
switch(ch) {
case 'q':
#ifdef SBBSCON_PROMPT_ON_QUIT /* This part of Quicksilver's mod doesn't work right on an active BBS (the prompt is usually quickly erased) */
/* default to no, prevent accidental quit */
printf("Confirm quit [y/N]: ");
fflush(stdout);
......@@ -1960,6 +1961,9 @@ int main(int argc, char** argv)
default:
break;
}
#else
terminated = TRUE;
#endif
break;
case 'w': /* who's online */
printf("\nNodes in use:\n");
......
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