From 98c867cf09343fa3161a1f6e712aa48299a33db8 Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 06:22:52 +0000 Subject: Die properly on included config file errors git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3821 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 76c1429e1..bac5d2c1e 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1223,7 +1223,8 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, std::string &line, long lin if((tagname == "include") && (current_key == "file")) { - this->DoInclude(target, current_value, errorstream); + if(!this->DoInclude(target, current_value, errorstream)) + return false; } current_key.clear(); -- cgit v1.2.3