diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-27 15:44:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-27 15:44:30 +0000 |
commit | e63eb1ff79562dec036598ddbdd18df71d8d6ffc (patch) | |
tree | 1d1acb1ca2ba289890025517111b7204f2cb7e35 /src/modules | |
parent | 2579e83d3d03f3360974c014623c39b523fef95c (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chanprotect.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); |