From b040f1c1a6b3140024a2eab0174415c0763ed6ae Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Apr 2004 17:26:30 +0000 Subject: Added preliminary support for ConfigReader::Verify at request of the slug :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@419 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index d2263e352..46b24de7b 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -314,7 +314,7 @@ bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int pa ConfigReader::ConfigReader() { this->cache = new std::stringstream(stringstream::in | stringstream::out); - LoadConf(CONFIG_FILE,this->cache); + this->error = LoadConf(CONFIG_FILE,this->cache); } @@ -328,7 +328,7 @@ ConfigReader::~ConfigReader() ConfigReader::ConfigReader(std::string filename) { this->cache = new std::stringstream(stringstream::in | stringstream::out); - LoadConf(filename.c_str(),this->cache); + this->error = LoadConf(filename.c_str(),this->cache); }; std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) @@ -347,7 +347,7 @@ int ConfigReader::Enumerate(std::string tag) bool ConfigReader::Verify() { - return true; + return this->error; } -- cgit v1.3.1-10-gc9f91