Add silent channel option
[umurmur.git] / src / conf.c
index a110056d3e1cef926fc9a11bacf4c451ee7ddcd4..447061f46d5c93047791e4ba9b5968d728629ad9 100644 (file)
@@ -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;
 }