mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 09:13:14 +02:00
Add null values for options, new syntax for /set, reintroduce temporary IRC server feature, improve IRC server options, new functions in API
This commit is contained in:
@@ -96,7 +96,7 @@ plugin_config_set_internal (const char *option, const char *value)
|
||||
ptr_option = config_file_new_option (
|
||||
plugin_config_file, plugin_config_section_var,
|
||||
option, "string", NULL,
|
||||
NULL, 0, 0, "", value, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
NULL, 0, 0, "", value, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
rc = (ptr_option) ? WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE : WEECHAT_CONFIG_OPTION_SET_ERROR;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ plugin_config_create_option (void *data, struct t_config_file *config_file,
|
||||
ptr_option = config_file_new_option (
|
||||
config_file, section,
|
||||
option_name, "string", NULL,
|
||||
NULL, 0, 0, "", value, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
NULL, 0, 0, "", value, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
return (ptr_option) ?
|
||||
WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE : WEECHAT_CONFIG_OPTION_SET_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user