summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index f259e4435..b3b02f507 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -46,7 +46,8 @@ void InspIRCd::Rehash()
{
this->WriteOpers("*** Rehashing config file %s due to SIGHUP",ServerConfig::CleanFilename(this->ConfigFileName));
this->CloseLog();
- this->OpenLog(this->Config->argv, this->Config->argc);
+ if (!this->OpenLog(this->Config->argv, this->Config->argc))
+ this->WriteOpers("*** ERROR: Could not open logfile %s: %s", Config->logpath.c_str(), strerror(errno));
this->RehashUsersAndChans();
FOREACH_MOD_I(this, I_OnGarbageCollect, OnGarbageCollect());
this->Config->Read(false,NULL);