From e63eb1ff79562dec036598ddbdd18df71d8d6ffc Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 27 Oct 2006 15:44:30 +0000 Subject: When loading, dont try and free the qa modes, we havent allocated them yet git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5555 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index a074ef127..060f81eb9 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -278,6 +278,7 @@ class ModuleChanProtect : public Module bool FirstInGetsFounder; bool QAPrefixes; + bool booting; ChanProtect* cp; ChanFounder* cf; char* dummyptr; @@ -287,7 +288,9 @@ class ModuleChanProtect : public Module ModuleChanProtect(InspIRCd* Me) : Module::Module(Me) { /* Load config stuff */ + booting = true; OnRehash(""); + booting = false; /* Initialise module variables */ @@ -335,7 +338,7 @@ class ModuleChanProtect : public Module * If so, remove all instances of the mode, and reinit * the module with prefixes enabled. */ - if (old_qa != QAPrefixes) + if ((old_qa != QAPrefixes) && (!booting)) { ServerInstance->Modes->DelMode(cp); ServerInstance->Modes->DelMode(cf); -- cgit v1.2.3