diff options
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 70c99e8ae..4877cab5a 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1219,7 +1219,8 @@ void ServerConfig::ApplyModules(User* user) // Don't remove cmd_*.so, just remove m_*.so if (removing->c_str()[0] == 'c') continue; - if (ServerInstance->Modules->Unload(removing->c_str())) + Module* m = ServerInstance->Modules->Find(*removing); + if (m && ServerInstance->Modules->Unload(m)) { ServerInstance->SNO->WriteGlobalSno('a', "*** REHASH UNLOADED MODULE: %s",removing->c_str()); |