fset: fix the fset buffer after /upgrade

This commit is contained in:
Sébastien Helleu 2017-05-30 21:35:32 +02:00
parent 968ee87114
commit 21d448f5f5

View File

@ -69,6 +69,8 @@ fset_add_bar ()
int
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
{
const char *ptr_filter;
/* make C compiler happy */
(void) argc;
(void) argv;
@ -109,6 +111,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
weechat_hook_config ("*", &fset_option_config_cb, NULL, NULL);
if (fset_buffer)
{
ptr_filter = weechat_buffer_get_string (fset_buffer, "localvar_filter");
if (ptr_filter)
fset_option_filter_options (ptr_filter);
}
return WEECHAT_RC_OK;
}