diff options
author | FreeArtMan <dos21h@gmail.com> | 2014-08-31 08:49:53 +0900 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2014-08-31 08:49:53 +0900 |
commit | f9a751917d0dd885ba7ae6047ccf7369512ee5df (patch) | |
tree | f0d40267bbef0db583ddfe9257d28dbb75eee331 /microbbs.c | |
parent | 56bcbaf9db3fc08b45b1065868714c58bd0d381a (diff) | |
download | microbbs-f9a751917d0dd885ba7ae6047ccf7369512ee5df.tar.gz microbbs-f9a751917d0dd885ba7ae6047ccf7369512ee5df.zip |
Case insensitive, syslog support
Diffstat (limited to 'microbbs.c')
-rw-r--r-- | microbbs.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,7 @@ #include <stdio.h> #include <stdlib.h> +#include "logs.h" #include "motd.h" #include "libterm/term.h" @@ -15,6 +16,8 @@ int main( int argc, char **argv ) term_init_data( &ts ); //printf("%d %d\n", ts.term_col, ts.term_row); + //write to log that some user have accesed bbs + bbs_log( NULL ); //write to default place bbs_motd( &ts, "art/motd.txt" ); print_build_info(); while ( strncmp( str, "q", 1 ) ) @@ -26,21 +29,25 @@ int main( int argc, char **argv ) switch ( str[0] ) { case 'm': + case 'M': { bbs_motd( &ts, "art/motd.txt" ); } break; case 's': + case 'S': { bbs_sysinfo( &ts ); } break; case 'a': + case 'A': { bbs_article( &ts, "article/post1.txt" ); } break; case 'q': + case 'Q': break; default: printf("Unknow command\n"); |