diff options
| author | 2008-11-02 14:29:40 +0000 | |
|---|---|---|
| committer | 2008-11-02 14:29:40 +0000 | |
| commit | 0d2b6637ca369166629576f160ef1fd376078e5a (patch) | |
| tree | 542bb6a239bf42a372e79c0c3b0aa0c624cfe8c4 /src/configreader.cpp | |
| parent | Fix incorrect watch usage, patch from dz (thanks). (diff) | |
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
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
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()) { |
