summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-11-03 09:28:06 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-11-03 09:28:16 +0100
commit7e07954fbfe3f37586a9fd652ff76c0e3b149fa9 (patch)
tree06ce871ddbc28b35db5680778b67b39245030040 /src/plugins
parent015ae4a94b612544f925d6f84c243a74adc2fa2e (diff)
downloadweechat-7e07954fbfe3f37586a9fd652ff76c0e3b149fa9.zip
irc: restore irc raw filter after /upgrade (issue #1000)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-upgrade.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-upgrade.c b/src/plugins/irc/irc-upgrade.c
index f6a42ba7e..cbf5b41ac 100644
--- a/src/plugins/irc/irc-upgrade.c
+++ b/src/plugins/irc/irc-upgrade.c
@@ -894,6 +894,7 @@ irc_upgrade_load ()
{
int rc;
struct t_upgrade_file *upgrade_file;
+ const char *ptr_filter;
irc_upgrade_set_buffer_callbacks ();
@@ -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;
}