summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 4eca9492e..694601df9 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -813,6 +813,7 @@ ConfigReader::ConfigReader(InspIRCd* Instance) : ServerInstance(Instance)
this->error = CONF_NO_ERROR;
this->data = &ServerInstance->Config->config_data;
this->privatehash = false;
+ this->error = 0;
}
@@ -837,6 +838,7 @@ ConfigReader::ConfigReader(InspIRCd* Instance, const std::string &filename) : Se
this->readerror = ServerInstance->Config->DoInclude(*this->data, filename, *this->errorlog);
if (!this->readerror)
this->error = CONF_FILE_NOT_FOUND;
+ this->error = 0;
}