diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-12-09 12:30:21 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-12-09 12:30:21 +0100 |
commit | 94b3599a48f3b53683327be3703a8471f81b916b (patch) | |
tree | ced247c42e2aa969647942f9d17552120e98ec3b | |
parent | b0676698152d88c76020b0fa51942d7297f152f3 (diff) |
Initialize ServerConfig::EmptyTag using the init list
-rw-r--r-- | src/configreader.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 54c32d846..df58ec812 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -29,7 +29,14 @@ #include "configparser.h" #include <iostream> +static ConfigTag* CreateEmptyTag() +{ + std::vector<KeyVal>* items; + return ConfigTag::create("empty", "<auto>", 0, items); +} + ServerConfig::ServerConfig() + : EmptyTag(CreateEmptyTag()) { RawLog = HideBans = HideSplits = UndernetMsgPrefix = false; WildcardIPv6 = InvBypassModes = true; @@ -41,9 +48,6 @@ ServerConfig::ServerConfig() OperMaxChans = 30; c_ipv4_range = 32; c_ipv6_range = 128; - - std::vector<KeyVal>* items; - EmptyTag = ConfigTag::create("empty", "<auto>", 0, items); } ServerConfig::~ServerConfig() |