From ef7c6fe9e2bfb22de66808e56a5f5bd602c3086f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 4 Apr 2026 12:10:50 +0100 Subject: Remove the remaining bits of stdalgo to utility/container. --- modules/disable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/disable.cpp') 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! -- cgit v1.3.1-10-gc9f91