aboutsummaryrefslogtreecommitdiffstats
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-08-11 12:17:40 +0000
committerGravatar brain2007-08-11 12:17:40 +0000
commit76ded2a428a56b775f41293e6fd0f3666bf8b614 (patch)
treedc064553bf7dce04b252225f87b1a788cb00262d /src/configreader.cpp
parentbp: Make the return codes correct, and allow for LoadCommand without a user p... (diff)
Fix this so it works.
OBVIOUS WARNING FOR THE DUMB: Dont go overwriting .so files at random to test this, you WILL crash your ircd if you do this improprerly, this is a feature of the linux shared object loader. If you want to test this, try with: rm cmd_whatever.so && echo "TESTTEST" >cmd_whatever.so, do NOT just do the echo. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7714 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 ea6afa2ff..f2ba5e72a 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -928,6 +928,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