aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-03 15:22:55 +0100
committerGravatar Sadie Powell2023-07-03 18:43:24 +0100
commit130966707f0c59ef8948b31ee6633025ae8fb647 (patch)
tree85c47eb277c60edc8bfddc5fee60f83022e0dbef /src/configreader.cpp
parentMove 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.cpp3
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. */