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:
Kyle Fuller
2011-08-31 01:05:13 +00:00
parent e70b6854a3
commit 75d7cdffd9

View File

@@ -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; \