diff options
-rw-r--r-- | modules/pseudoclients/chanserv.cpp | 2 |
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")) |