mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01: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:
@@ -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