summaryrefslogtreecommitdiffstats
path: root/microbbs.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-10-31 10:15:31 +0900
committerFreeArtMan <dos21h@gmail.com>2014-10-31 10:15:31 +0900
commitc84cc88f0b34d8802390e2a7b6dab7f07ba277d1 (patch)
treef8af1ec8dafd72636eaf320f658c191c47bc1f75 /microbbs.c
parentf9a751917d0dd885ba7ae6047ccf7369512ee5df (diff)
downloadmicrobbs-c84cc88f0b34d8802390e2a7b6dab7f07ba277d1.tar.gz
microbbs-c84cc88f0b34d8802390e2a7b6dab7f07ba277d1.zip
added article dump, if you whant read it in whole set. hided first log message becouse to many spam from fake visitours
Diffstat (limited to 'microbbs.c')
-rw-r--r--microbbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/microbbs.c b/microbbs.c
index c0d94a3..3624671 100644
--- a/microbbs.c
+++ b/microbbs.c
@@ -20,7 +20,7 @@ int main( int argc, char **argv )
bbs_log( NULL ); //write to default place
bbs_motd( &ts, "art/motd.txt" );
print_build_info();
- while ( strncmp( str, "q", 1 ) )
+ while ( strncmp( str, "q", 1 ) && strncmp( str, "Q", 1 ) )
{
printf("(M)otd (Q)uit (S)ysinfo (A)rticles: ");
ret_len = getline( &str, &str_size, stdin );
@@ -48,6 +48,7 @@ int main( int argc, char **argv )
break;
case 'q':
case 'Q':
+ bbs_log_quit( NULL );
break;
default:
printf("Unknow command\n");