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.