diff options
| author | 2026-04-04 12:10:50 +0100 | |
|---|---|---|
| committer | 2026-04-04 12:32:00 +0100 | |
| commit | ef7c6fe9e2bfb22de66808e56a5f5bd602c3086f (patch) | |
| tree | 96f67982d63c354a33295997c828fb79462120e6 /modules/disable.cpp | |
| parent | Rename utility/map to container and prefix the difference method. (diff) | |
Remove the remaining bits of stdalgo to utility/container.
Diffstat (limited to 'modules/disable.cpp')
| -rw-r--r-- | modules/disable.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/disable.cpp b/modules/disable.cpp index ebed6bb75..91cfc0fe2 100644 --- a/modules/disable.cpp +++ b/modules/disable.cpp @@ -21,6 +21,7 @@ #include "modules/isupport.h" #include "numerichelper.h" #include "stringutils.h" +#include "utility/container.h" enum { @@ -161,7 +162,7 @@ public: if (!fakenonexistent || !user->IsLocal()) return MOD_RES_PASSTHRU; // We're not hiding the numeric OR the user is remote. - if (!stdalgo::isin(commands, numeric.GetParams()[0]) || user->HasPrivPermission("servers/use-disabled-commands")) + if (!insp::contains(commands, numeric.GetParams()[0]) || user->HasPrivPermission("servers/use-disabled-commands")) return MOD_RES_PASSTHRU; // Wrong command or the user is is an exempt oper. return MOD_RES_DENY; @@ -174,7 +175,7 @@ public: return MOD_RES_PASSTHRU; // If the command is not disabled or the user has the servers/use-disabled-commands priv we do nothing. - if (!stdalgo::isin(commands, command) || user->HasPrivPermission("servers/use-disabled-commands")) + if (!insp::contains(commands, command) || user->HasPrivPermission("servers/use-disabled-commands")) return MOD_RES_PASSTHRU; // The user has tried to execute a disabled command! |
