Import hexchat automatically when calling /py exec

This commit is contained in:
TingPing 2013-05-09 23:45:04 -03:00
parent 494364d437
commit beb3ab506d
1 changed files with 1 additions and 0 deletions

View File

@ -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) {