summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-06 20:23:42 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-06 20:23:42 +0000
commitc630870d50354d426380029014ad9ebdf257b85d (patch)
treee3e01769a292c003dd1df5fcf4987dcc6e7500d7 /src/configreader.cpp
parent62ea718ea6d9f6403dc2e07ef7b680fbed33b1d9 (diff)
Fix rehash unloading core commands
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11684 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index a41e5d07f..4084257e5 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1229,6 +1229,9 @@ void ServerConfig::ApplyModules(User* user)
for (std::set<std::string>::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++)
{
+ // Don't remove cmd_*.so, just remove m_*.so
+ if (removing[0] == 'c')
+ continue;
if (ServerInstance->Modules->Unload(removing->c_str()))
{
ServerInstance->SNO->WriteToSnoMask('a', "*** REHASH UNLOADED MODULE: %s",removing->c_str());