diff options
| author | 2023-08-05 12:02:14 +0100 | |
|---|---|---|
| committer | 2023-08-11 12:03:09 +0100 | |
| commit | 681b488fc0ebca964eddf2a54575dc41901bc520 (patch) | |
| tree | 8d5953e1ecc38e7abc8e4369e71a2f3db2a1744a /src/helperfuncs.cpp | |
| parent | Move stdalgo::string::{equalsci,tocstr} to utility/string. (diff) | |
Update usages of stdalgo::string::equalsci to use insp::equalsci.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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. |
