From b638b653d2591048cc4265969764305b672f70f7 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 27 Dec 2013 17:12:01 -0500 Subject: Fix crash when channels are registered that do not exist by non users --- modules/pseudoclients/chanserv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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")) -- cgit