From 681b488fc0ebca964eddf2a54575dc41901bc520 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 5 Aug 2023 12:02:14 +0100 Subject: Update usages of stdalgo::string::equalsci to use insp::equalsci. --- src/helperfuncs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 4da2a4d3d..81c8dacc4 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -32,6 +32,7 @@ #include "inspircd.h" #include "timeutils.h" +#include "utility/string.h" #include "xline.h" bool InspIRCd::CheckPassword(const std::string& password, const std::string& passwordhash, const std::string& value) @@ -47,7 +48,7 @@ bool InspIRCd::CheckPassword(const std::string& password, const std::string& pas // The hash algorithm wasn't recognised by any modules. If its plain // text then we can check it internally. - if (passwordhash.empty() || stdalgo::string::equalsci(passwordhash, "plaintext")) + if (passwordhash.empty() || insp::equalsci(passwordhash, "plaintext")) return TimingSafeCompare(password, value); // The password was invalid. -- cgit v1.3.1-10-gc9f91