diff options
Diffstat (limited to 'microbbs.c')
-rw-r--r-- | microbbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); |