summaryrefslogtreecommitdiff
path: root/include/inspircd_io.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-15 20:21:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-15 20:21:08 +0000
commite5f9f1f62113b8e1f5bd774b89138d8afc239eba (patch)
tree2e492c6b17479abc087bececbce3746cdc4cc11d /include/inspircd_io.h
parent25ce714b64d987416bc7a605cfa0f621f39b450c (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/inspircd_io.h')
-rw-r--r--include/inspircd_io.h4
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