aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cloak_sha256.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-06-06 00:57:07 +0100
committerGravatar Sadie Powell2023-06-06 01:02:14 +0100
commitacc9f5228f686ea816db38d8ecb1925adc053984 (patch)
tree3cdb53b7740689be56493f1929a03e6137ee4d09 /src/modules/m_cloak_sha256.cpp
parentMerge 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 'src/modules/m_cloak_sha256.cpp')
-rw-r--r--src/modules/m_cloak_sha256.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_cloak_sha256.cpp b/src/modules/m_cloak_sha256.cpp
index 92e3ca964..cabb19748 100644
--- a/src/modules/m_cloak_sha256.cpp
+++ b/src/modules/m_cloak_sha256.cpp
@@ -263,7 +263,12 @@ public:
#else
data["using-psl"] = "no";
#endif
+ }
+ bool IsLinkSensitive() const override
+ {
+ // This method always wants to be at the front.
+ return true;
}
};