From 9595db021dbfc77f0b0bd81ddc01b2578435aa22 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Aug 2007 12:05:31 +0000 Subject: 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 --- src/configreader.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/configreader.cpp') 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 -- cgit v1.2.3