diff options
| author | 2023-05-03 17:34:55 +0100 | |
|---|---|---|
| committer | 2023-05-03 17:47:41 +0100 | |
| commit | cc2244e7ba1397ca08e93303f30908f56d1ad2a4 (patch) | |
| tree | 5c02e1edcaee29a661867b6ac44c680401772eda /include/modules | |
| parent | Remove 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.h | 2 |
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. |
