diff options
| author | 2006-04-04 06:32:08 +0000 | |
|---|---|---|
| committer | 2006-04-04 06:32:08 +0000 | |
| commit | ea27cd70c98339c68eb99d1fa6d9dec46d02a234 (patch) | |
| tree | 6e9e57c8a930649e0080425df2a3c005c161193a /src/inspircd_io.cpp | |
| parent | Remove duplicate error messages (diff) | |
| download | inspircd++-ea27cd70c98339c68eb99d1fa6d9dec46d02a234.tar.gz inspircd++-ea27cd70c98339c68eb99d1fa6d9dec46d02a234.tar.bz2 inspircd++-ea27cd70c98339c68eb99d1fa6d9dec46d02a234.zip | |
Extra error detection, thwap me if this comes up with false positives
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3823 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
| -rw-r--r-- | src/inspircd_io.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 8df18bcc7..8cb4f9dd2 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1045,6 +1045,12 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o if((ch == '#') && !in_quote) in_comment = true; + if(((ch == '\n') || (ch == '\r')) && in_quote) + { + errorstream << "Got a newline within a quoted section, this is probably a typo: " << filename << ":" << linenumber << std::endl; + return false; + } + switch(ch) { case '\n': |
