diff options
| author | 2023-06-06 00:57:07 +0100 | |
|---|---|---|
| committer | 2023-06-06 01:02:14 +0100 | |
| commit | acc9f5228f686ea816db38d8ecb1925adc053984 (patch) | |
| tree | 3cdb53b7740689be56493f1929a03e6137ee4d09 /include/modules | |
| parent | Merge branch 'insp3' into master. (diff) | |
Allow secondary cloak methods to be used on link synchronisation.
If a server has a conditional cloak method (e.g. account) as the
primary cloak method it doesn't make sense to use it for link
consistency. With this change a secondary cloak method can request
that it is used instead of the primary if the primary does not
mark itself as link sensitive.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/cloak.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modules/cloak.h b/include/modules/cloak.h index fb841c466..49c3f49b6 100644 --- a/include/modules/cloak.h +++ b/include/modules/cloak.h @@ -163,6 +163,15 @@ public: return provname.c_str() + 6; } + /** Determines whether when this cloak method is behind non-sensitive cloak methods + * if it should be treated as if it was the primary link method for the purposes of + * generating link data. + */ + virtual bool IsLinkSensitive() const + { + return false; + } + /** Determines whether this method is provided by the specified service provider. * @param prov The service provider to check. */ |
