From 0340f1a432d684347d8dbc3aa85c8436c56d4039 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 25 Mar 2005 02:52:43 +0000 Subject: Added a lot of config error checking git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@898 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index dc17b99c0..81d76d55d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -647,6 +647,7 @@ class ConfigReader : public classbase * (such as comments) stripped from it. */ std::stringstream *cache; + std::stringstream *errorlog; /** Used to store errors */ bool readerror; @@ -703,6 +704,13 @@ class ConfigReader : public classbase * file does not exist or could not be opened. */ bool Verify(); + /** Dumps the list of errors in a config file to an output location. If bail is true, + * then the program will abort. If bail is false and user points to a valid user + * record, the error report will be spooled to the given user by means of NOTICE. + * if bool is false AND user is false, the error report will be spooled to all opers + * by means of a NOTICE to all opers. + */ + void DumpErrors(bool bail,userrec* user); /** Returns the number of items within a tag. * For example if the tag was <test tag="blah" data="foo"> then this -- cgit v1.2.3