summary refs log tree commit diff stats
path: root/plugins/python/python.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-09 23:45:04 -0300
committerTingPing <tngpng@gmail.com>2013-05-09 23:45:04 -0300
commitbeb3ab506de6993e80b6b6932160a23247db4130 (patch)
tree54dfc6fc62fdafc4a310721f156f000c58ef6a55 /plugins/python/python.c
parent494364d437fb2594e00e78658b27f1d3add6cc1f (diff)
Import hexchat automatically when calling /py exec
Diffstat (limited to 'plugins/python/python.c')
-rw-r--r--plugins/python/python.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index f3df501a..0fed65ca 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -2162,6 +2162,7 @@ IInterp_Exec(char *command)
 	memcpy(buffer, command, len);
 	buffer[len] = '\n';
 	buffer[len+1] = 0;
+	PyRun_SimpleString("import hexchat");
 	o = PyRun_StringFlags(buffer, Py_single_input, d, d, NULL);
 	g_free(buffer);
 	if (o == NULL) {