diff options
Diffstat (limited to 'microbbs.c')
-rw-r--r-- | microbbs.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -18,7 +18,7 @@ int main( int argc, char **argv ) //write to log that some user have accesed bbs //bbs_log( NULL ); //write to default place - bbs_motd( &ts, "art/motd.txt" ); + bbs_login_motd( &ts, "art/motd.txt" ); print_build_info(); while ( strncmp( str, "q", 1 ) && strncmp( str, "Q", 1 ) ) { @@ -31,7 +31,7 @@ int main( int argc, char **argv ) case 'm': case 'M': { - bbs_motd( &ts, "art/motd.txt" ); + bbs_login_motd( &ts, "art/motd.txt" ); } break; case 's': @@ -43,7 +43,7 @@ int main( int argc, char **argv ) case 'a': case 'A': { - bbs_article( &ts, "article/post1.txt" ); + bbs_article_list( &ts, "./article/" ); } break; case 'q': @@ -55,5 +55,6 @@ int main( int argc, char **argv ) } } } + bbs_quit_motd( &ts, "art/quit.txt" ); return 0; } |