From 6399cd9327eac2776355644fe21acb02e52cf16c Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 27 Aug 2017 12:59:02 +0100 Subject: Add a ConfigTag* parameter to the ServerPaths constructor. This is used to directly read the settings from the config tag like how ServerLimits works. --- include/configreader.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include') 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); } -- cgit v1.3.1-10-gc9f91