summaryrefslogtreecommitdiffstats
path: root/microbbs.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-08-31 08:49:53 +0900
committerFreeArtMan <dos21h@gmail.com>2014-08-31 08:49:53 +0900
commitf9a751917d0dd885ba7ae6047ccf7369512ee5df (patch)
treef0d40267bbef0db583ddfe9257d28dbb75eee331 /microbbs.c
parent56bcbaf9db3fc08b45b1065868714c58bd0d381a (diff)
downloadmicrobbs-f9a751917d0dd885ba7ae6047ccf7369512ee5df.tar.gz
microbbs-f9a751917d0dd885ba7ae6047ccf7369512ee5df.zip
Case insensitive, syslog support
Diffstat (limited to 'microbbs.c')
-rw-r--r--microbbs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/microbbs.c b/microbbs.c
index af22958..c0d94a3 100644
--- a/microbbs.c
+++ b/microbbs.c
@@ -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");