summaryrefslogtreecommitdiffstats
path: root/microbbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'microbbs.c')
-rw-r--r--microbbs.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/microbbs.c b/microbbs.c
index 5024b8b..08f65c8 100644
--- a/microbbs.c
+++ b/microbbs.c
@@ -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