From df9dc2cb77720b9b78ad87559657c14874d0b676 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Thu, 21 Apr 2022 21:09:17 -0300 Subject: Do not allow plugins to eat Close Context These are used for clean-up and letting them be eaten may lead to plugins getting confused about which data belong to which contexts. --- src/common/hexchat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/hexchat.c') diff --git a/src/common/hexchat.c b/src/common/hexchat.c index a2e88a0d..f74fe489 100644 --- a/src/common/hexchat.c +++ b/src/common/hexchat.c @@ -552,7 +552,7 @@ new_ircwindow (server *serv, char *name, int type, int focus) if (user && user->hostname) set_topic (sess, user->hostname, user->hostname); } - plugin_emit_dummy_print (sess, "Open Context"); + plugin_emit_dummy_print (sess, "Open Context", -1); return sess; } @@ -629,7 +629,7 @@ session_free (session *killsess) GSList *list; int oldidx; - plugin_emit_dummy_print (killsess, "Close Context"); + plugin_emit_dummy_print (killsess, "Close Context", 0); if (current_tab == killsess) current_tab = NULL; -- cgit 1.4.1