aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-05-03 17:34:55 +0100
committerGravatar Sadie Powell2023-05-03 17:47:41 +0100
commitcc2244e7ba1397ca08e93303f30908f56d1ad2a4 (patch)
tree5c02e1edcaee29a661867b6ac44c680401772eda /include/modules
parentRemove the now-obsolete hostchange module. (diff)
Fix the cloak modules on Clang and MSVC.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/cloak.h2
1 files changed, 1 insertions, 1 deletions
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.