int plugin_config_reload (void *data, struct t_config_file *config_file) { /* make C compiler happy */ (void) data; /* remove all plugin options and descriptions */ config_file_section_free_options (plugin_config_section_var); config_file_section_free_options (plugin_config_section_desc); /* reload plugins configuration file */ return config_file_reload (config_file); }
int secure_reload_cb (void *data, struct t_config_file *config_file) { /* make C compiler happy */ (void) data; if (secure_hashtable_data_encrypted->items_count > 0) { gui_chat_printf (NULL, _("%sError: not possible to reload file sec.conf " "because there is still encrypted data (use /secure " "decrypt, see /help secure)"), gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]); return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; } secure_data_encrypted = 0; /* remove all secured data */ hashtable_remove_all (secure_hashtable_data); return config_file_reload (config_file); }