From 36a6e7f22e5510d12bd8e11a5b25f29360fbd75c Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:33:03 +0000 Subject: Prevent from running itself [jackmcbarn] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11710 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/configreader.h') diff --git a/include/configreader.h b/include/configreader.h index c8cd13081..45384b8a3 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -140,7 +140,7 @@ class CoreExport ServerConfig : public classbase * configutation, appending errors to errorstream * and setting error if an error has occured. */ - bool ParseLine(const std::string &filename, std::string &line, long &linenumber); + bool ParseLine(const std::string &filename, std::string &line, long &linenumber, bool allowexeinc); /** Check that there is only one of each configuration item */ @@ -156,7 +156,7 @@ class CoreExport ServerConfig : public classbase /** Process an include file directive */ - bool DoInclude(const std::string &file); + bool DoInclude(const std::string &file, bool allowexeinc); /** Error stream, contains error output from any failed configuration parsing. */ @@ -618,12 +618,12 @@ class CoreExport ServerConfig : public classbase /** Load 'filename' into 'target', with the new config parser everything is parsed into * tag/key/value at load-time rather than at read-value time. */ - bool LoadConf(FILE* &conf, const char* filename); + bool LoadConf(FILE* &conf, const char* filename, bool allowexeinc); /** Load 'filename' into 'target', with the new config parser everything is parsed into * tag/key/value at load-time rather than at read-value time. */ - bool LoadConf(FILE* &conf, const std::string &filename); + bool LoadConf(FILE* &conf, const std::string &filename, bool allowexeinc); /** Writes 'length' chars into 'result' as a string */ -- cgit v1.2.3