diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/anope.h | 5 | ||||
-rw-r--r-- | include/config.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index 0b22584ef..a6bad8e5b 100644 --- a/include/anope.h +++ b/include/anope.h @@ -552,6 +552,11 @@ namespace Anope */ extern CoreExport Anope::string Random(size_t len); + /** Replace ${VARIABLE} or ${VARIABLE:-default} in a string with + * the appropriate environment variables + */ + extern CoreExport Anope::string ProcessEnvVars(const Anope::string &); + extern Logger Logger; } diff --git a/include/config.h b/include/config.h index b020b1902..0f70bb54d 100644 --- a/include/config.h +++ b/include/config.h @@ -168,6 +168,8 @@ namespace Configuration void ApplyBots(); void LoadOpers(); + + static void ProcessEnvVars(Block *); }; struct Uplink |