From 130966707f0c59ef8948b31ee6633025ae8fb647 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Jul 2023 15:22:55 +0100 Subject: 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. --- src/configreader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/configreader.cpp') 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("empty", FilePosition("", 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. */ -- cgit v1.3.1-10-gc9f91