mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Don't crash when loading python network modules.
This commit is contained in:
@@ -140,7 +140,7 @@ public:
|
||||
sArgs.c_str(),
|
||||
(int)eType,
|
||||
(eType == CModInfo::GlobalModule ? Py_None : SWIG_NewInstanceObj(GetUser(), SWIG_TypeQuery("CUser*"), 0)),
|
||||
(eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CNetwork*"), 0) : Py_None),
|
||||
(eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CIRCNetwork*"), 0) : Py_None),
|
||||
CPyRetString::wrap(sRetMsg),
|
||||
SWIG_NewInstanceObj(reinterpret_cast<CModule*>(this), SWIG_TypeQuery("CModule*"), 0));
|
||||
if (!pyRes) {
|
||||
|
||||
Reference in New Issue
Block a user