diff options
Diffstat (limited to 'microbbs.c')
-rw-r--r-- | microbbs.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -17,18 +17,20 @@ int main( int argc, char **argv ) term_screen ts; term_init( &ts ); + term_clr_scr( &ts ); //lunch captcha and try to detect if its random bot #ifdef CONFIG_CAPTCHA if ( captcha_test1() != 1) return 1; + bbs_log_captcha( NULL ); #endif //write to log that some user have accesed bbs //too much fake stuff comes to log - //bbs_log( NULL ); //write to default place + bbs_log_main( NULL ); //write to default place #ifdef CONFIG_MOTD - bbs_login_motd( &ts, "art/motd.txt" ); + bbs_login_motd( NULL, "art/motd.txt" ); print_build_info(); #endif @@ -81,6 +83,8 @@ int main( int argc, char **argv ) } break; #endif + + //------------------------------------------------------------------ case 's': case 'S': { @@ -118,6 +122,7 @@ int main( int argc, char **argv ) break; #endif + //------------------------------------------------------------------ #ifndef CONFIG_MESSAGING case 'g': case 'G': @@ -159,6 +164,7 @@ int main( int argc, char **argv ) break; #endif + //------------------------------------------------------------------ case 'q': case 'Q': bbs_log_quit( NULL ); @@ -171,5 +177,8 @@ int main( int argc, char **argv ) #ifdef CONFIG_MOTD bbs_quit_motd( &ts, "art/quit.txt" ); #endif + + term_clr_scr( &ts ); + term_set_orig_mode( &ts ); return 0; } |