Skip to content

Commit

Permalink
irc: restore irc raw filter after /upgrade (issue #1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Nov 3, 2019
1 parent 015ae4a commit 7e07954
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/plugins/irc/irc-upgrade.c
Expand Up @@ -894,6 +894,7 @@ irc_upgrade_load ()
{
int rc;
struct t_upgrade_file *upgrade_file;
const char *ptr_filter;

irc_upgrade_set_buffer_callbacks ();

Expand All @@ -906,5 +907,13 @@ irc_upgrade_load ()

weechat_upgrade_close (upgrade_file);

if (irc_raw_buffer)
{
ptr_filter = weechat_buffer_get_string (irc_raw_buffer,
"localvar_filter");
if (ptr_filter && ptr_filter[0])
irc_raw_filter_options (ptr_filter);
}

return rc;
}

0 comments on commit 7e07954

Please sign in to comment.