From deb18ee9cfa531a87141aea61171c6899ef7d687 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 8 Sep 2013 17:21:01 +0200 Subject: Remove InspIRCd::HandleRehash functor Call InspIRCd::Rehash() from cmd_rehash and from the SIGHUP handler --- src/commands/cmd_rehash.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_rehash.cpp b/src/commands/cmd_rehash.cpp index 3dc454036..441ddbd2a 100644 --- a/src/commands/cmd_rehash.cpp +++ b/src/commands/cmd_rehash.cpp @@ -88,11 +88,7 @@ CmdResult CommandRehash::Handle (const std::vector& parameters, Use /* Don't do anything with the logs here -- logs are restarted * after the config thread has completed. */ - FOREACH_MOD(OnGarbageCollect, ()); - - - ServerInstance->ConfigThread = new ConfigReaderThread(user->uuid); - ServerInstance->Threads->Start(ServerInstance->ConfigThread); + ServerInstance->Rehash(); } else { -- cgit v1.2.3