aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-13 20:43:13 +0000
committerGravatar Sadie Powell2023-01-13 20:50:00 +0000
commit1f4ffdfee959614e3afe7e7daab06a040ca1ac41 (patch)
treef49b94d8d59e9d08867501c23b21828a3bb9976b /include/modules
parentDocument 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 'include/modules')
-rw-r--r--include/modules/cloak.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/modules/cloak.h b/include/modules/cloak.h
index d1d7347fc..108068e70 100644
--- a/include/modules/cloak.h
+++ b/include/modules/cloak.h
@@ -102,6 +102,12 @@ public:
*/
virtual void GetLinkData(Module::LinkData& data, std::string& compatdata) = 0;
+ /** Retrieves the name of this cloaking method. */
+ std::string_view GetName() const
+ {
+ return std::string_view(provname.c_str() + 6);
+ }
+
/** Determines whether this method is provided by the specified service provider.
* @param prov The service provider to check.
*/