From 78cd3898f5ca14a51ba1d98a746b3e1bc63d4fa5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 7 Jun 2023 12:59:19 +0100 Subject: Only regenerate cloaks if a cloak of that type exists. This prevents unnecessary recloaking which may result in spam. --- include/modules/cloak.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/modules') 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. -- cgit v1.3.1-10-gc9f91