diff options
| author | 2023-01-13 20:43:13 +0000 | |
|---|---|---|
| committer | 2023-01-13 20:50:00 +0000 | |
| commit | 1f4ffdfee959614e3afe7e7daab06a040ca1ac41 (patch) | |
| tree | f49b94d8d59e9d08867501c23b21828a3bb9976b /src/modules/m_cloak_md5.cpp | |
| parent | Document the cloak_sha256 <cloak:case> option. (diff) | |
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.
Diffstat (limited to 'src/modules/m_cloak_md5.cpp')
| -rw-r--r-- | src/modules/m_cloak_md5.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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; |
