summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-27 17:12:01 -0500
committerAdam <Adam@anope.org>2013-12-27 17:12:01 -0500
commitb638b653d2591048cc4265969764305b672f70f7 (patch)
tree1d7b0d80839cab63f595cfeb36dd1d5025bbcec1
parent0fb2b60cff755ccda0a9a4f4e4bb381b8eb752fe (diff)
Fix crash when channels are registered that do not exist by non users
-rw-r--r--modules/pseudoclients/chanserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index f33bee6c1..f5c878161 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -421,7 +421,7 @@ class ChanServCore : public Module, public ChanServService
void OnChanRegistered(ChannelInfo *ci) anope_override
{
- if (!persist)
+ if (!persist || !ci->c)
return;
/* Mark the channel as persistent */
if (ci->c->HasMode("PERM"))