diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 11:53:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 11:53:21 +0000 |
commit | 2d871a23fe511a0529a202130b03d1a52d2d19f1 (patch) | |
tree | 7f085a13ce253f096160480192b29d372268e344 /src | |
parent | 2efc090cbdb8e007c92ebe78e186e16ccbaa3885 (diff) |
Remove dependent commands BEFORE deleting the Module*, otherwise things go tits over arse
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4761 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f667acf8e..3ce2261c5 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -536,12 +536,12 @@ bool InspIRCd::UnloadModule(const char* filename) } // found the module + log(DEBUG,"Removing dependent commands..."); + Parser->RemoveCommands(filename); log(DEBUG,"Deleting module..."); this->EraseModule(j); log(DEBUG,"Erasing module entry..."); this->EraseFactory(j); - log(DEBUG,"Removing dependent commands..."); - Parser->RemoveCommands(filename); log(DEFAULT,"Module %s unloaded",filename); MODCOUNT--; BuildISupport(); |