From 80c7578cd9d543b695b10c91d82a59e33ab50b48 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 28 May 2024 23:27:13 +0100 Subject: Remove v3 config compatibility code. --- src/configreader.cpp | 40 +++------------------------------------- 1 file changed, 3 insertions(+), 37 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 84bc58853..c5503f4d1 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -50,7 +50,7 @@ ServerConfig::ServerLimits::ServerLimits(const std::shared_ptr& tag) , MaxNick(tag->getNum("maxnick", 30, 1, MaxLine)) , MaxChannel(tag->getNum("maxchan", 60, 1, MaxLine)) , MaxModes(tag->getNum("maxmodes", 20, 1)) - , MaxUser(tag->getNum("maxuser", tag->getNum("maxident", 10, 1, MaxLine), 1, MaxLine)) + , MaxUser(tag->getNum("maxuser", 10, 1, MaxLine)) , MaxQuit(tag->getNum("maxquit", 300, 0, MaxLine)) , MaxTopic(tag->getNum("maxtopic", 330, 1, MaxLine)) , MaxKick(tag->getNum("maxkick", 300, 1, MaxLine)) @@ -366,7 +366,7 @@ void ServerConfig::Fill() const auto& options = ConfValue("options"); DefaultModes = options->getString("defaultmodes", "not"); MaskInList = options->getBool("maskinlist"); - MaskInTopic = options->getBool("maskintopic", options->getBool("hostintopic")); + MaskInTopic = options->getBool("maskintopic"); NoSnoticeStack = options->getBool("nosnoticestack"); SyntaxHints = options->getBool("syntaxhints"); XLineMessage = options->getString("xlinemessage", "You're banned!", 1); @@ -394,7 +394,7 @@ void ServerConfig::Fill() CustomVersion = security->getString("customversion"); HideServer = security->getString("hideserver", {}, InspIRCd::IsFQDN); MaxTargets = security->getNum("maxtargets", 5, 1, 50); - XLineQuitPublic = security->getString("publicxlinequit", security->getBool("hidebans") ? "%fulltype%" : ""); + XLineQuitPublic = security->getString("publicxlinequit"); // Read the config. const auto& cidr = ConfValue("cidr"); @@ -672,40 +672,6 @@ std::vector ServerConfig::GetModules() const } // Rewrite the old names of renamed modules. - if (insp::equalsci(shortname, "cgiirc")) - modules.push_back("gateway"); - else if (insp::equalsci(shortname, "cloaking")) - { - modules.push_back("cloak"); - modules.push_back("cloak_md5"); - } - else if (insp::equalsci(shortname, "gecosban")) - modules.push_back("realnameban"); - else if (insp::equalsci(shortname, "helpop")) - { - modules.push_back("help"); - modules.push_back("helpmode"); - } - else if (insp::equalsci(shortname, "mlock")) - modules.push_back("services"); - else if (insp::equalsci(shortname, "namesx")) - modules.push_back("multiprefix"); - else if (insp::equalsci(shortname, "regex_pcre2")) - modules.push_back("regex_pcre"); - else if (insp::equalsci(shortname, "sha256")) - modules.push_back("sha2"); - else if (insp::equalsci(shortname, "services_account")) - { - modules.push_back("account"); - modules.push_back("services"); - } - else if (insp::equalsci(shortname, "servprotect")) - modules.push_back("services"); - else if (insp::equalsci(shortname, "svshold")) - modules.push_back("services"); - else if (insp::equalsci(shortname, "topiclock")) - modules.push_back("services"); - else { // No need to rewrite this module name. modules.push_back(shortname); -- cgit v1.3.1-10-gc9f91