diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 06:32:08 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-04 06:32:08 +0000 |
commit | ea27cd70c98339c68eb99d1fa6d9dec46d02a234 (patch) | |
tree | 6e9e57c8a930649e0080425df2a3c005c161193a | |
parent | 24fc512fd97310e2fbe339a166dbfa7b26e8c31b (diff) |
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
-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': |