aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar brain2004-04-07 17:26:30 +0000
committerGravatar brain2004-04-07 17:26:30 +0000
commitb040f1c1a6b3140024a2eab0174415c0763ed6ae (patch)
tree38d09b749d99881279e2ceaf075631fdf3eb191f /src/modules.cpp
parentAdded servernotice back to the user, informing them (diff)
downloadinspircd++-b040f1c1a6b3140024a2eab0174415c0763ed6ae.tar.gz
inspircd++-b040f1c1a6b3140024a2eab0174415c0763ed6ae.tar.bz2
inspircd++-b040f1c1a6b3140024a2eab0174415c0763ed6ae.zip
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
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}