From 55882c39f1025e29674c42741ee1e00ec8c2169e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 11 Mar 2020 13:58:45 +0000 Subject: Fix detection of the "plaintext" pseudo-hash being case sensitive. --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 11d3cf15b..c4e55c3ca 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -39,7 +39,7 @@ bool InspIRCd::PassCompare(Extensible* ex, const std::string& data, const std::s return false; /* We dont handle any hash types except for plaintext - Thanks tra26 */ - if (!hashtype.empty() && hashtype != "plaintext") + if (!hashtype.empty() && !stdalgo::string::equalsci(hashtype, "plaintext")) return false; return TimingSafeCompare(data, input); -- cgit v1.3.1-10-gc9f91