summaryrefslogtreecommitdiff
path: root/src/cmd_rehash.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 17:08:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 17:08:02 +0000
commit6cc7cd76fbc809d6c0df55c061684581e31b6ebc (patch)
tree24cdf1a0c83998d30d15cde8ffcb3606349440a5 /src/cmd_rehash.cpp
parent6c9a69cbad71e15788cc4d5757b5ee7d311bff70 (diff)
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
Diffstat (limited to 'src/cmd_rehash.cpp')
-rw-r--r--src/cmd_rehash.cpp2
1 files changed, 2 insertions, 0 deletions
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)