diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-06 11:59:17 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-06 11:59:17 +0000 |
commit | 1ee5092d7528488b2e2160a57c5dcd433ac48d4d (patch) | |
tree | 7b2109aeb51c6a58807c9bd936c947170b9c6f73 /src/configreader.cpp | |
parent | eb154d31f7dcda835b8cbbc0b50769d7f2474894 (diff) |
fix compile errors under debug profile in windows.
fix some warnings too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10108 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 2f7a651e6..4a4e97a89 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -82,7 +82,6 @@ bool ServerConfig::AddIOHook(Module* iomod, BufferedSocket* is) else { throw ModuleException("BufferedSocket derived class already hooked by another module"); - return false; } } @@ -136,15 +135,9 @@ bool ServerConfig::CheckOnce(const char* tag, ConfigDataHash &newconf) int count = ConfValueEnum(newconf, tag); if (count > 1) - { throw CoreException("You have more than one <"+std::string(tag)+"> tag, this is not permitted."); - return false; - } if (count < 1) - { throw CoreException("You have not defined a <"+std::string(tag)+"> tag, this is required."); - return false; - } return true; } |