diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 834bdd05e..b8f942e60 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -16,6 +16,7 @@ For a list of important changes that require manual actions, please look at rele Bug fixes:: * core: fix integer overflow when setting integer option with `++N` or `--N` + * core: fix increment/decrement of options weechat.notify.* * irc: add missing tags on multiline messages (issue #1987) * irc: fix redirection of command `/list` when the reply doesn't start with message 321 (start of /list) diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 97d7a6c3f..c0557586f 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -2466,27 +2466,6 @@ config_weechat_layout_write_cb (const void *pointer, void *data, return WEECHAT_CONFIG_WRITE_OK; } -/* - * Checks notify option value. - * - * Returns: - * 1: value OK - * 0: invalid value - */ - -int -config_weechat_notify_check_cb (const void *pointer, void *data, - struct t_config_option *option, - const char *value) -{ - /* make C compiler happy */ - (void) pointer; - (void) data; - (void) option; - - return (gui_buffer_search_notify (value) >= 0) ? 1 : 0; -} - /* * Callback for changes on a notify option. */ @@ -2549,7 +2528,7 @@ config_weechat_notify_create_option_cb (const void *pointer, void *data, option_name, "integer", _("Notify level for buffer"), "none|highlight|message|all", 0, 0, "", value, 0, - &config_weechat_notify_check_cb, NULL, NULL, + NULL, NULL, NULL, &config_weechat_notify_change_cb, NULL, NULL, NULL, NULL, NULL); rc = (ptr_option) ?