summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_chanprotect.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index e2c71673d..bc52a53a1 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -408,6 +408,9 @@ class ModuleChanProtect : public Module
if ((ServerInstance->ULine(source->nick.c_str())) || (ServerInstance->ULine(source->server)) || (!*source->server))
return MOD_RES_ALLOW;
+ if (!channel)
+ return MOD_RES_PASSTHRU;
+
std::string founder("cm_founder_"+channel->name);
std::string protect("cm_protect_"+channel->name);