From 9095800a1750caf7e5d6951090e8f6c2a2facbc4 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 8 Jun 2008 14:21:21 +0000 Subject: Check for invalid characters in keys, will catch config errors earlier and closer to the actual error line. Valid values in key names are [A-Za-z_] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9863 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index 5198a6e24..62d757621 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -285,7 +285,7 @@ class CoreExport ServerConfig : public Extensible * configutation, appending errors to errorstream * and setting error if an error has occured. */ - bool ParseLine(ConfigDataHash &target, std::string &line, long &linenumber, std::ostringstream &errorstream); + bool ParseLine(ConfigDataHash &target, const std::string &filename, std::string &line, long &linenumber, std::ostringstream &errorstream); /** Check that there is only one of each configuration item */ -- cgit v1.2.3