mirror of
https://github.com/znc/znc.git
synced 2026-06-12 17:54:59 +02:00
Fix CALLMOD, m_pNetwork could be NULL, in this case CALLMOD would be passed a NULL network. But CALLMOD will try calling its modules anyway
This commit is contained in:
+2
-2
@@ -16,8 +16,8 @@
|
||||
#include "WebModules.h"
|
||||
|
||||
#define CALLMOD(MOD, CLIENT, USER, NETWORK, FUNC) { \
|
||||
CModule *pModule = (NETWORK)->GetModules().FindModule(MOD); \
|
||||
if (pModule) { \
|
||||
CModule *pModule = NULL; \
|
||||
if (NETWORK && (pModule = (NETWORK)->GetModules().FindModule(MOD))) { \
|
||||
try { \
|
||||
pModule->SetClient(CLIENT); \
|
||||
pModule->FUNC; \
|
||||
|
||||
Reference in New Issue
Block a user