summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 0ae6beb..2cb6aa6 100644
--- a/config.c
+++ b/config.c
@@ -35,6 +35,10 @@ int cfg_init() {
ircstats_config.monolog_min = 5;
}
+ if(!config_lookup_int(&config, "wordlen_min", &ircstats_config.wordlen_min)) {
+ ircstats_config.wordlen_min = 3;
+ }
+
config_setting_t *regexes_setting = config_lookup(&config, "regexes");
if(!config_setting_is_aggregate(regexes_setting)) {
fprintf(stderr, "Setting \"regexes\" must be an aggregate type.\n");