From b4034e2231afcfcb5cf29156288c666d90831fed Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 29 Nov 2012 15:31:08 +0100 Subject: cmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hop Fixes #375 reported by @JDowny --- src/commands/cmd_rehash.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_rehash.cpp b/src/commands/cmd_rehash.cpp index 1fa6e5731..abf0b7876 100644 --- a/src/commands/cmd_rehash.cpp +++ b/src/commands/cmd_rehash.cpp @@ -94,8 +94,6 @@ CmdResult CommandRehash::Handle (const std::vector& parameters, Use ServerInstance->ConfigThread = new ConfigReaderThread(user->uuid); ServerInstance->Threads->Start(ServerInstance->ConfigThread); - - return CMD_SUCCESS; } else { @@ -107,9 +105,10 @@ CmdResult CommandRehash::Handle (const std::vector& parameters, Use user->WriteServ("NOTICE %s :*** Could not rehash: A rehash is already in progress.", user->nick.c_str()); else ServerInstance->PI->SendUserNotice(user, "*** Could not rehash: A rehash is already in progress."); - - return CMD_FAILURE; } + + // Always return success so spanningtree forwards an incoming REHASH even if we failed + return CMD_SUCCESS; } -- cgit v1.2.3