diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-26 00:51:20 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-26 00:51:20 +0000 |
commit | 047f09dd572b89223ff3798dc25c34fe4c4172b3 (patch) | |
tree | 676ea8fe0e15a648d9bb2ae6dbec27b575f0ce74 /include/modules.h | |
parent | 1bbe35d493556fd7e6bc2b0b7df3ea888fae8b74 (diff) |
Add possibility to define default value for ConfValue in configreader and ReadConf in modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6113 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 3c9899ded..8f5462b3a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1394,6 +1394,13 @@ class ConfigReader : public classbase * This method destroys the ConfigReader class. */ ~ConfigReader(); + + /** Retrieves a value from the config file. + * This method retrieves a value from the config file. Where multiple copies of the tag + * exist in the config file, index indicates which of the values to retrieve. If the + * tag is not found the default value is returned instead. + */ + std::string ReadValue(const std::string &tag, const std::string &name, const std::string &default_value, int index, bool allow_linefeeds = false); /** Retrieves a value from the config file. * This method retrieves a value from the config file. Where multiple copies of the tag * exist in the config file, index indicates which of the values to retrieve. |