diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-15 20:21:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-15 20:21:08 +0000 |
commit | e5f9f1f62113b8e1f5bd774b89138d8afc239eba (patch) | |
tree | 2e492c6b17479abc087bececbce3746cdc4cc11d /include | |
parent | 25ce714b64d987416bc7a605cfa0f621f39b450c (diff) |
Added checks to forbid declaring certain config tags twice (ones which should only exist once like <server> and <admin>)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2804 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd_io.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |