mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 03:03:12 +02:00
core: do not call check callback when setting default value of option
This commit is contained in:
@@ -1864,18 +1864,6 @@ config_file_option_set_default (struct t_config_option *option,
|
||||
|
||||
rc = WEECHAT_CONFIG_OPTION_SET_ERROR;
|
||||
|
||||
if (option->callback_check_value)
|
||||
{
|
||||
if (!(int)(option->callback_check_value) (
|
||||
option->callback_check_value_pointer,
|
||||
option->callback_check_value_data,
|
||||
option,
|
||||
value))
|
||||
{
|
||||
return WEECHAT_CONFIG_OPTION_SET_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
if (value)
|
||||
{
|
||||
old_value_was_null = (option->default_value == NULL);
|
||||
|
||||
Reference in New Issue
Block a user