summaryrefslogtreecommitdiffstats
path: root/articles.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-12-09 10:31:37 +0900
committerFreeArtMan <dos21h@gmail.com>2014-12-09 10:31:37 +0900
commita57c6bed8f6ab7d0f4355190c0cff7cd913da6a0 (patch)
treec8b85b9de364cb63678d05625bdff6a2cf12ecda /articles.c
parentdc4bbe5366d6c733f9f77b7c9fee0cbba3e0d92b (diff)
downloadmicrobbs-a57c6bed8f6ab7d0f4355190c0cff7cd913da6a0.tar.gz
microbbs-a57c6bed8f6ab7d0f4355190c0cff7cd913da6a0.zip
New planned functionality. Menuconfig support. Simple captcha.
Diffstat (limited to 'articles.c')
-rw-r--r--articles.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/articles.c b/articles.c
index cf5f40d..8b4af8d 100644
--- a/articles.c
+++ b/articles.c
@@ -1,5 +1,7 @@
#include "articles.h"
+#ifdef CONFIG_ARTICLES
+
//TODO add checkout on size of art it will fix,
// warn about cutted images
int bbs_article( term_screen *ts, const char *fname )
@@ -26,7 +28,7 @@ int bbs_article( term_screen *ts, const char *fname )
max_y = 24;
}
- bbs_log_article( NULL );
+ bbs_log_article( fname );
if ( fname != NULL )
{
@@ -161,7 +163,6 @@ int bbs_article_list( term_screen *ts, const char *dir_name )
if ( path_node.st_mode & S_IFREG )
{
llist_push( dir_list, cnct_path );
- printf("-->%s\n", cnct_path);
}
}
}
@@ -236,3 +237,5 @@ int bbs_article_list( term_screen *ts, const char *dir_name )
return ret;
}
+
+#endif