summaryrefslogtreecommitdiff
path: root/include/configreader.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-27 12:59:02 +0100
committerPeter Powell <petpow@saberuk.com>2017-09-03 15:35:41 +0100
commit6399cd9327eac2776355644fe21acb02e52cf16c (patch)
tree3c9f462abf804573e3e5e447362150b22d98a2bf /include/configreader.h
parenta3f2e6ed5424c3e27aa1c7226bb436cd46bb19f7 (diff)
Add a ConfigTag* parameter to the ServerPaths constructor.
This is used to directly read the settings from the config tag like how ServerLimits works.
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/configreader.h b/include/configreader.h
index cabd74aff..1eef60780 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -216,11 +216,7 @@ class CoreExport ServerConfig
/** Module path */
std::string Module;
- ServerPaths()
- : Config(INSPIRCD_CONFIG_PATH)
- , Data(INSPIRCD_DATA_PATH)
- , Log(INSPIRCD_LOG_PATH)
- , Module(INSPIRCD_MODULE_PATH) { }
+ ServerPaths(ConfigTag* tag);
std::string PrependConfig(const std::string& fn) const { return FileSystem::ExpandPath(Config, fn); }
std::string PrependData(const std::string& fn) const { return FileSystem::ExpandPath(Data, fn); }