summary refs log tree commit diff stats
path: root/src/common/hexchat.c
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-04-21 21:09:17 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-04-21 21:09:17 -0300
commitdf9dc2cb77720b9b78ad87559657c14874d0b676 (patch)
treea4a1f2e7edcddddf24cfaf0f47818769df2ac9db /src/common/hexchat.c
parent5f137d2c81878c41aa3b893fb56b1116bc27bc78 (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.c4
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;