mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-29 04:32:15 -05:00
Import hexchat automatically when calling /py exec
This commit is contained in:
parent
494364d437
commit
beb3ab506d
@ -2162,6 +2162,7 @@ IInterp_Exec(char *command)
|
|||||||
memcpy(buffer, command, len);
|
memcpy(buffer, command, len);
|
||||||
buffer[len] = '\n';
|
buffer[len] = '\n';
|
||||||
buffer[len+1] = 0;
|
buffer[len+1] = 0;
|
||||||
|
PyRun_SimpleString("import hexchat");
|
||||||
o = PyRun_StringFlags(buffer, Py_single_input, d, d, NULL);
|
o = PyRun_StringFlags(buffer, Py_single_input, d, d, NULL);
|
||||||
g_free(buffer);
|
g_free(buffer);
|
||||||
if (o == NULL) {
|
if (o == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user