summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-11 12:05:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-11 12:05:31 +0000
commit9595db021dbfc77f0b0bd81ddc01b2578435aa22 (patch)
tree17aa8a4c5eb434a4a34971e65f41deb15396c8e9 /src/configreader.cpp
parent0f4caa76984ab4f15f8e69b4a396eb38f3a7fd4d (diff)
Allow rehash to attempt to load missing (and new) lib/cmd_*.so files, to allow users to fix an emergency situation you can create by trying to reload a corrupt .so without needing a restart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7712 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 46bb9231e..050276525 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -920,6 +920,9 @@ void ServerConfig::Read(bool bail, userrec* user)
ServerInstance->Log(DEFAULT,"Successfully unloaded %lu of %lu modules and loaded %lu of %lu modules.",(unsigned long)rem,(unsigned long)removed_modules.size(),(unsigned long)add,(unsigned long)added_modules.size());
}
+ /** Note: This is safe, the method checks for user == NULL */
+ ServerInstance->Parser->SetupCommandTable(user);
+
if (user)
user->WriteServ("NOTICE %s :*** Successfully rehashed server.", user->nick);
else