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. --- include/modules/cloak.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/modules') 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. */ -- cgit v1.3.1-10-gc9f91