From 1f4ffdfee959614e3afe7e7daab06a040ca1ac41 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 13 Jan 2023 20:43:13 +0000 Subject: Various improvements to the cloak system. - Only rewrite cloak => cloaking if the cloak_md5 module is also loaded. - Include the cloak method in the link data. - If 1206 servers are using different cloak methods then ignore the other data when telling operators about the link failure. - Clean up the code in a few places. --- src/modules/m_cloak_md5.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/modules/m_cloak_md5.cpp') diff --git a/src/modules/m_cloak_md5.cpp b/src/modules/m_cloak_md5.cpp index 0e2971d85..cab08cad9 100644 --- a/src/modules/m_cloak_md5.cpp +++ b/src/modules/m_cloak_md5.cpp @@ -209,15 +209,6 @@ struct CloakInfo final void GetLinkData(Module::LinkData& data, std::string& compatdata) override { - switch (mode) - { - case MODE_HALF_CLOAK: - data["mode"] = "half"; - break; - case MODE_OPAQUE: - data["mode"] = "full"; - break; - } data["domain-parts"] = ConvToStr(domainparts); data["ignore-case"] = ignorecase ? "yes" : "no"; data["prefix"] = prefix; -- cgit v1.3.1-10-gc9f91