diff options
| author | 2023-07-03 15:22:55 +0100 | |
|---|---|---|
| committer | 2023-07-03 18:43:24 +0100 | |
| commit | 130966707f0c59ef8948b31ee6633025ae8fb647 (patch) | |
| tree | 85c47eb277c60edc8bfddc5fee60f83022e0dbef /src/configreader.cpp | |
| parent | Move ServerLimits inside ServerConfig. (diff) | |
Refactor the ServerConfig class.
All fields are now ordered in the most memory efficient way and all
public fields use the correct case. Every member has been redocumented
to match the current documentation style.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 497254765..8c3038b6c 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -85,7 +85,6 @@ ServerConfig::ServerConfig() : EmptyTag(std::make_shared<ConfigTag>("empty", FilePosition("<auto>", 0, 0))) , Limits(EmptyTag) , Paths(EmptyTag) - , CaseMapping("ascii") { } @@ -383,9 +382,9 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid) * These values can only be set on boot. Keep their old values. Do it before we send messages so we actually have a servername. */ this->CaseMapping = old->CaseMapping; + this->CommandLine = old->CommandLine; this->ServerId = old->ServerId; this->ServerName = old->ServerName; - this->cmdline = old->cmdline; } /* The stuff in here may throw CoreException, be sure we're in a position to catch it. */ |
