]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd_io.cpp
Optimisations
[user/henk/code/inspircd.git] / src / inspircd_io.cpp
index 8df18bcc7169368e44bee5e730f4af7a750030c7..8cb4f9dd2fd6022cdb73a2628e327ef0f19d90ef 100644 (file)
@@ -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':