mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Progress on modpython global hooks.
OnModuleLoading, OnModuleUnloading, OnGetModInfo work fine. Need to add: OnClientCapLs, OnGetAvailableMods, OnLoginAttempt See #98
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "modpython/swigpyrun.h"
|
||||
#include "modpython/module.h"
|
||||
#include "modpython/retstring.h"
|
||||
#include "modpython/ret.h"
|
||||
|
||||
class CModPython: public CModule {
|
||||
|
||||
@@ -197,6 +197,11 @@ public:
|
||||
Py_CLEAR(pyFunc);
|
||||
return HALT;
|
||||
}
|
||||
if (!PyObject_IsTrue(pyRes)) {
|
||||
// python module, but not handled by modpython itself.
|
||||
// some module-loader written on python loaded it?
|
||||
return CONTINUE;
|
||||
}
|
||||
Py_CLEAR(pyFunc);
|
||||
Py_CLEAR(pyRes);
|
||||
bSuccess = true;
|
||||
|
||||
Reference in New Issue
Block a user