diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-02 17:52:32 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-02 17:52:32 +0200 |
commit | a34ddc5dd68c4530c91853507868684a9bc4b45e (patch) | |
tree | dc50334c6a8181047bf9ba0a012c3aac93719c3b /config.c | |
parent | 6dd916eaedfd23a93ba7aa2e2b39511e7e907dec (diff) |
Added a minimum word length config option, "wordlen_min".
Also did some minor cleanup of the word add code in process_file.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |