From 1fe82b66fb2ceeb567ea351559a6eb48e752413a Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 12 Feb 2006 00:18:52 +0000 Subject: [PATCH] Fail if unable to open an included template git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@646 726aef4b-f618-498e-8847-2d620e286838 --- Template.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Template.cpp b/Template.cpp index d44430a1..9958fa73 100644 --- a/Template.cpp +++ b/Template.cpp @@ -166,7 +166,9 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) { if (!uSkip) { if (sAction.CaseCmp("INC") == 0) { - Print(File.GetDir() + sArgs, oOut); + if (!Print(File.GetDir() + sArgs, oOut)) { + return false; + } } else if (sAction.CaseCmp("ADDROW") == 0) { CString sLoopName = sArgs.Token(0); MCString msRow;