From f6781614b0caf32e81ba04140ad5b63b85a5bceb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 16 Apr 2025 12:15:07 +0100 Subject: Move customversion from to . This does not relate to security so it should not be in the tag. --- src/configreader.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 496108254..f861f35ba 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -367,9 +367,16 @@ void ServerConfig::Fill() ServerDesc = server->getString("description", ServerName, 1); Network = server->getString("network", ServerName, 1); + // Read the config. + const auto& security = ConfValue("security"); + BanRealMask = security->getBool("banrealmask", true); + HideServer = security->getString("hideserver", {}, InspIRCd::IsFQDN); + MaxTargets = security->getNum("maxtargets", 5, 1, 50); + XLineQuitPublic = security->getString("publicxlinequit"); // Read the config. const auto& options = ConfValue("options"); + CustomVersion = options->getString("customversion", security->getString("customversion")); DefaultModes = options->getString("defaultmodes", "not"); MaskInList = options->getBool("maskinlist"); MaskInTopic = options->getBool("maskintopic"); @@ -395,14 +402,6 @@ void ServerConfig::Fill() SoftLimit = performance->getNum("softlimit", (SocketEngine::GetMaxFds() > 0 ? SocketEngine::GetMaxFds() : SIZE_MAX), 10); TimeSkipWarn = performance->getDuration("timeskipwarn", 2, 0, 30); - // Read the config. - const auto& security = ConfValue("security"); - BanRealMask = security->getBool("banrealmask", true); - CustomVersion = security->getString("customversion"); - HideServer = security->getString("hideserver", {}, InspIRCd::IsFQDN); - MaxTargets = security->getNum("maxtargets", 5, 1, 50); - XLineQuitPublic = security->getString("publicxlinequit"); - // Read the config. const auto& cidr = ConfValue("cidr"); IPv4Range = cidr->getNum("ipv4clone", 32, 1, 32); -- cgit v1.3.1-10-gc9f91