X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.c;h=447061f46d5c93047791e4ba9b5968d728629ad9;hb=c7a24ac8471652b8443453d8f02acd7b85a68d60;hp=a110056d3e1cef926fc9a11bacf4c451ee7ddcd4;hpb=0203f5ed9211a3e0958d83844db32bad7a0e11e7;p=umurmur.git diff --git a/src/conf.c b/src/conf.c index a110056..447061f 100644 --- a/src/conf.c +++ b/src/conf.c @@ -333,6 +333,13 @@ int Conf_getNextChannel(conf_channel_t *chdesc, int index) chdesc->noenter = false; else chdesc->noenter = config_setting_get_bool(setting); + + ret = snprintf(configstr, maxconfig, "channels.[%d].silent", index); + setting = config_lookup(&configuration, configstr); + if (ret >= maxconfig || ret < 0 || setting == NULL) /* Optional */ + chdesc->silent = false; + else + chdesc->silent = config_setting_get_bool(setting); return 0; }