aboutsummaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-06-07 12:59:19 +0100
committerGravatar Sadie Powell2023-06-07 12:59:35 +0100
commit78cd3898f5ca14a51ba1d98a746b3e1bc63d4fa5 (patch)
tree81f13b19065b9b59898e955c0fdbd136d7322d15 /include/modules
parentInclude <cloak:pathparts> as link data in cloak_sha256. (diff)
Only regenerate cloaks if a cloak of that type exists.
This prevents unnecessary recloaking which may result in spam.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/cloak.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/modules/cloak.h b/include/modules/cloak.h
index 8fc220854..e2f035428 100644
--- a/include/modules/cloak.h
+++ b/include/modules/cloak.h
@@ -74,6 +74,11 @@ public:
*/
virtual List* GetCloaks(LocalUser* user) = 0;
+ /** Determines whether any cloaks of the specified type exist.
+ * @param method The engine to check the active status of.
+ */
+ virtual bool IsActiveCloak(const Cloak::Engine& engine) = 0;
+
/** Reset the cloaks for the specified user.
* @param user The user to reset the cloaks for.
* @param resetdisplay Whether to reset the currently displayed cloak.