From e5f9f1f62113b8e1f5bd774b89138d8afc239eba Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 Jan 2006 20:21:08 +0000 Subject: Added checks to forbid declaring certain config tags twice (ones which should only exist once like and ) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2804 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd_io.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/inspircd_io.h') diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 1e3b24fb6..f1b5e8afe 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -61,6 +61,10 @@ class ServerConfig : public classbase */ std::string ConfProcess(char* buffer, long linenumber, std::stringstream* errorstream, bool &error, std::string filename); + /** Check that there is only one of each configuration item + */ + bool CheckOnce(char* tag,bool bail); + public: /** Holds the server name of the local server -- cgit v1.2.3