From ea27cd70c98339c68eb99d1fa6d9dec46d02a234 Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 06:32:08 +0000 Subject: 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 --- src/inspircd_io.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inspircd_io.cpp') 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': -- cgit v1.3.1-10-gc9f91