summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-01-08 02:52:44 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-01-08 02:52:44 +0100
commite3ecfb708fa6f868fd15a34ac74cad17082c9e7a (patch)
tree02af333ef9253d1798fa0ded145b430d8ac42f30 /config.c
parent3f0b80bb129aedd41ee09dccf45c532caf28a854 (diff)
Implemented monolog counters.
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 b9123b8..0ae6beb 100644
--- a/config.c
+++ b/config.c
@@ -31,6 +31,10 @@ int cfg_init() {
ircstats_config.threads = 1;
}
+ if(!config_lookup_int(&config, "monolog_min", &ircstats_config.monolog_min)) {
+ ircstats_config.monolog_min = 5;
+ }
+
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");