diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-04-21 21:09:17 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-04-21 21:09:17 -0300 |
commit | df9dc2cb77720b9b78ad87559657c14874d0b676 (patch) | |
tree | a4a1f2e7edcddddf24cfaf0f47818769df2ac9db /src/common/hexchat.c | |
parent | 5f137d2c81878c41aa3b893fb56b1116bc27bc78 (diff) |
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.
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r-- | src/common/hexchat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |