From 6cc7cd76fbc809d6c0df55c061684581e31b6ebc Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 23 Dec 2006 17:08:02 +0000 Subject: Close logfile on rehash and reopen (it was only doing this on sighup for some reason) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6079 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_rehash.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cmd_rehash.cpp') diff --git a/src/cmd_rehash.cpp b/src/cmd_rehash.cpp index 52a304286..47554d5ac 100644 --- a/src/cmd_rehash.cpp +++ b/src/cmd_rehash.cpp @@ -35,6 +35,8 @@ CmdResult cmd_rehash::Handle (const char** parameters, int pcnt, userrec *user) else { ServerInstance->WriteOpers("%s is rehashing config file %s",user->nick,ServerConfig::CleanFilename(CONFIG_FILE)); + ServerInstance->CloseLog(); + ServerInstance->OpenLog(NULL,0); ServerInstance->Config->Read(false,user); } if (old_disabled != ServerInstance->Config->DisabledCommands) -- cgit v1.2.3