summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp4
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();