From 1078718b3c90e9653ffb1d92054c7740abf11356 Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Sat, 27 Sep 2003 20:33:15 +0000 Subject: Combined The file Modules and Config file existance checkers into one function Added 'Exists' To the FileReader class of the Module API git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@192 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_randquote.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index 5db1c66ac..ddff1c914 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -39,6 +39,11 @@ class ModuleRandQuote : public Module quotes = new FileReader(q_file); + if(!quotes->Exists()) + { + printf("m_randquote: QuoteFile not Found!! Please check your config.\n\n"); + exit(0); + } } virtual ~ModuleRandQuote() -- cgit v1.2.3