diff options
| author | Ryan Farley <ryan.farley@gmx.com> | 2021-05-07 12:16:48 +0000 |
|---|---|---|
| committer | Ryan Farley <ryan.farley@gmx.com> | 2021-05-07 12:16:48 +0000 |
| commit | 5df981d23fba6241e9e16c9f623d6790cf85040d (patch) | |
| tree | c06bab6cfffa842726a01379c8c1d6fd8d26f170 /config.c | |
| parent | update changelog (diff) | |
consistent booleans in config, reset legacy bell
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -605,11 +605,17 @@ parse_section_main(const char *key, const char *value, struct config *conf, }; tll_push_back(conf->notifications, deprecation); - if (strcmp(value, "set-urgency") == 0) + if (strcmp(value, "set-urgency") == 0) { + memset(&conf->bell, 0, sizeof(conf->bell)); conf->bell.urgent = true; - else if (strcmp(value, "notify") == 0) + } + else if (strcmp(value, "notify") == 0) { + memset(&conf->bell, 0, sizeof(conf->bell)); conf->bell.notify = true; - /* we do nothing by default, so none may be ignored */ + } + else if (strcmp(value, "none") == 0) { + memset(&conf->bell, 0, sizeof(conf->bell)); + } else { LOG_AND_NOTIFY_ERR( "%s%d: [default]: bell: " |
