mirror of
https://github.com/moparisthebest/hexchat
synced 2025-01-08 12:28:14 -05:00
Add constants to both modules
This commit is contained in:
parent
68b6be11d6
commit
68de2bcb00
@ -1171,6 +1171,17 @@ Plugin_New(char *filename, PyMethodDef *xchat_methods, PyObject *xcoobj)
|
|||||||
hexchat_print(ph, "Can't create xchat module");
|
hexchat_print(ph, "Can't create xchat module");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyModule_AddIntConstant(m, "EAT_NONE", HEXCHAT_EAT_NONE);
|
||||||
|
PyModule_AddIntConstant(m, "EAT_XCHAT", HEXCHAT_EAT_HEXCHAT);
|
||||||
|
PyModule_AddIntConstant(m, "EAT_PLUGIN", HEXCHAT_EAT_PLUGIN);
|
||||||
|
PyModule_AddIntConstant(m, "EAT_ALL", HEXCHAT_EAT_ALL);
|
||||||
|
PyModule_AddIntConstant(m, "PRI_HIGHEST", HEXCHAT_PRI_HIGHEST);
|
||||||
|
PyModule_AddIntConstant(m, "PRI_HIGH", HEXCHAT_PRI_HIGH);
|
||||||
|
PyModule_AddIntConstant(m, "PRI_NORM", HEXCHAT_PRI_NORM);
|
||||||
|
PyModule_AddIntConstant(m, "PRI_LOW", HEXCHAT_PRI_LOW);
|
||||||
|
PyModule_AddIntConstant(m, "PRI_LOWEST", HEXCHAT_PRI_LOWEST);
|
||||||
|
|
||||||
m = Py_InitModule("hexchat", xchat_methods);
|
m = Py_InitModule("hexchat", xchat_methods);
|
||||||
if (m == NULL) {
|
if (m == NULL) {
|
||||||
hexchat_print(ph, "Can't create hexchat module");
|
hexchat_print(ph, "Can't create hexchat module");
|
||||||
|
Loading…
Reference in New Issue
Block a user