diff options
author | TingPing <tngpng@gmail.com> | 2013-04-08 17:07:13 -0300 |
---|---|---|
committer | TingPing <tngpng@gmail.com> | 2013-04-08 17:07:13 -0300 |
commit | 68b6be11d6223df39c094d67e9fcaf1a52978890 (patch) | |
tree | 8919f7ad44c730ab8c27ea362f5c512774995fe9 /plugins/python | |
parent | d13ae114a21c1f537dc39724f37509d840a9fd7c (diff) |
Add hexchat module to python interface
Diffstat (limited to 'plugins/python')
-rw-r--r-- | plugins/python/python.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c index 239703a8..4077bfe4 100644 --- a/plugins/python/python.c +++ b/plugins/python/python.c @@ -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); |