From cc2244e7ba1397ca08e93303f30908f56d1ad2a4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 3 May 2023 17:34:55 +0100 Subject: Fix the cloak modules on Clang and MSVC. --- include/modules/cloak.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules') diff --git a/include/modules/cloak.h b/include/modules/cloak.h index 7a2d7d525..fb841c466 100644 --- a/include/modules/cloak.h +++ b/include/modules/cloak.h @@ -131,7 +131,7 @@ protected: bool MatchesUser(LocalUser* user) const { - if (!classes.empty() && !stdalgo::isin(classes, user->GetClass()->GetName())) + if (!classes.empty() && classes.find(user->GetClass()->GetName()) == classes.end()) return false; // All fields matched. -- cgit v1.3.1-10-gc9f91