diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-07-05 17:42:26 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-07-05 17:42:26 +0100 |
commit | 8f893cfe961a3be8c688e9d657e656e03749477b (patch) | |
tree | ac2333997d30e77415116c058a7342f852d477ed /microbbs.c | |
parent | 43d3e330b0064c8ab962a7e77b4f26ac2c63f8ec (diff) | |
download | microbbs-8f893cfe961a3be8c688e9d657e656e03749477b.tar.gz microbbs-8f893cfe961a3be8c688e9d657e656e03749477b.zip |
Added default config init. And small fixes
Diffstat (limited to 'microbbs.c')
-rw-r--r-- | microbbs.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -14,6 +14,7 @@ #include "twit.h" #include "todo.h" #include "door.h" +#include "captcha.h" #include "libterm/term.h" #include "libterm/term_io.h" @@ -28,6 +29,10 @@ int main( int argc, char **argv ) int main_menu_input=0; char main_menu_cmd; + //set default config values + config_default(); + + //setting up terminal term_screen ts; memset( (void *)&ts, 0, sizeof(ts) ); term_init( &ts ); term_set_raw_mode( &ts ); @@ -41,7 +46,7 @@ int main( int argc, char **argv ) //lunch captcha and try to detect if its random bot #ifdef CONFIG_CAPTCHA - if ( captcha_test1( ts ) != 1) + if ( captcha_test1( &ts ) != 1) { goto exit_restore_terminal; } @@ -142,7 +147,7 @@ int main( int argc, char **argv ) case 'a': case 'A': { - bbs_article_list( &ts, "./article/" ); + bbs_article_list( &ts, g_config.article_dir ); } break; #endif |