From 1994ec96dc6db42363247532b15f73399c1406ed Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 8 Jun 2008 14:46:41 +0000 Subject: Make checks more strict git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9867 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/configreader.cpp b/src/configreader.cpp index ba39a563e..552b5ae8e 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1448,7 +1448,7 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, FILE* &conf, const char* fil { if (in_quote) { - errorstream << "We're in a quote but outside a tag, interesting. " << filename << ":" << linenumber << std::endl; + errorstream << "Parser error: Inside a quote but not within a tag!: " << filename << ":" << linenumber << std::endl; return false; } else @@ -1477,11 +1477,11 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, FILE* &conf, const char* fil { if (in_quote) { - errorstream << "Found a (closing) \" outside a tag: " << filename << ":" << linenumber << std::endl; + errorstream << "Found a closing \" outside a tag: " << filename << ":" << linenumber << std::endl; } else { - errorstream << "Found a (opening) \" outside a tag: " << filename << ":" << linenumber << std::endl; + errorstream << "Found a opening \" outside a tag: " << filename << ":" << linenumber << std::endl; } } } @@ -1578,7 +1578,7 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, const std::string &filename { if (*c != ' ') { - if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || (*c >= '0' && *c <= '9') || *c == '_' || *c == '\n' || *c == '>') + if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || (*c >= '0' && *c <= '9') || *c == '_' || *c == '>') current_key += *c; else { -- cgit v1.2.3