From 2d871a23fe511a0529a202130b03d1a52d2d19f1 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 7 Aug 2006 11:53:21 +0000 Subject: 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 --- src/inspircd.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3