diff options
author | FreeArtMan <dos21h@gmail.com> | 2014-11-16 15:20:30 +0900 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2014-11-16 15:20:30 +0900 |
commit | dc4bbe5366d6c733f9f77b7c9fee0cbba3e0d92b (patch) | |
tree | 59335ea751ae3e3cbedfd227e4c9c92237b1d6de /microbbs.c | |
parent | c0adc26b6e1b9c07b144798fb3b5de27a2e36e0c (diff) | |
download | microbbs-dc4bbe5366d6c733f9f77b7c9fee0cbba3e0d92b.tar.gz microbbs-dc4bbe5366d6c733f9f77b7c9fee0cbba3e0d92b.zip |
New version bumped. Article list and list read added. Quit motd added
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; } |