From 0d2b6637ca369166629576f160ef1fd376078e5a Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 2 Nov 2008 14:29:40 +0000 Subject: This was never supposed to be invoked on /rehash, only startup.. so move it to startup only. Also remove (redundant) user arg. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10792 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 7f211084c..3be7d5945 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1330,17 +1330,7 @@ void ServerConfig::Read(bool bail, const std::string &useruid) } - if (bail) - { - /** Note: This is safe, the method checks for user == NULL */ - ServerInstance->Threads->Lock(); - User* user = NULL; - if (!useruid.empty()) - user = ServerInstance->FindNick(useruid); - ServerInstance->Parser->SetupCommandTable(user); - ServerInstance->Threads->Unlock(); - } - else + if (!bail) { if (!useruid.empty()) { -- cgit v1.3.1-10-gc9f91