From beb3ab506de6993e80b6b6932160a23247db4130 Mon Sep 17 00:00:00 2001
From: TingPing <tngpng@gmail.com>
Date: Thu, 9 May 2013 23:45:04 -0300
Subject: Import hexchat automatically when calling /py exec

---
 plugins/python/python.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'plugins/python')

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) {
-- 
cgit 1.4.1