Add hexchat module to python interface
This commit is contained in:
parent
d13ae114a2
commit
68b6be11d6
@ -1171,6 +1171,11 @@ Plugin_New(char *filename, PyMethodDef *xchat_methods, PyObject *xcoobj)
|
||||
hexchat_print(ph, "Can't create xchat module");
|
||||
goto error;
|
||||
}
|
||||
m = Py_InitModule("hexchat", xchat_methods);
|
||||
if (m == NULL) {
|
||||
hexchat_print(ph, "Can't create hexchat module");
|
||||
goto error;
|
||||
}
|
||||
|
||||
PyModule_AddIntConstant(m, "EAT_NONE", HEXCHAT_EAT_NONE);
|
||||
PyModule_AddIntConstant(m, "EAT_XCHAT", HEXCHAT_EAT_HEXCHAT);
|
||||
|
Loading…
Reference in New Issue
Block a user