diff options
| author | 2017-08-27 12:59:02 +0100 | |
|---|---|---|
| committer | 2017-09-03 15:35:41 +0100 | |
| commit | 6399cd9327eac2776355644fe21acb02e52cf16c (patch) | |
| tree | 3c9f462abf804573e3e5e447362150b22d98a2bf /include | |
| parent | Remove module file extensions from user-visible messages. (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')
| -rw-r--r-- | include/configreader.h | 6 |
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); } |
