diff options
author | Sadie Powell <sadie@witchery.services> | 2025-03-09 13:57:20 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-03-09 14:20:34 +0000 |
commit | badcf31499d8dd4023d10d623c7a7dadef254f95 (patch) | |
tree | 60b5520cb773f40b099f99f30c8cb02aba3a2971 /include/config.h | |
parent | c98602bf19c3b3fa4966dd4fe4f990e5977e163a (diff) |
Make config variables a lot more useful.
- Config variables now no longer conflict with regular values.
- Config variables can now be read from the environment.
(e.g. ${env.USER}).
- Config variables can now be used as partial values
(e.g. support@${network.domain})
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/config.h b/include/config.h index 7d12d602d..d5fb9b91d 100644 --- a/include/config.h +++ b/include/config.h @@ -83,9 +83,14 @@ namespace Configuration struct Uplink; - struct CoreExport Conf final - : Block + class CoreExport Conf final + : public Block { + private: + /** Replaces defined variables within a string. */ + Anope::string ReplaceVars(const Anope::string &str, const File &file, int linenumber); + + public: /* options:readtimeout */ time_t ReadTimeout; /* If we should default to privmsging clients */ |