diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-11 13:58:45 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-11 13:58:45 +0000 |
commit | 55882c39f1025e29674c42741ee1e00ec8c2169e (patch) | |
tree | d9336cf6e47661e6e3b7e2e138897e711549a12d | |
parent | feaceb2b037123c8687b3afdd80b2ffba61a5652 (diff) |
Fix detection of the "plaintext" pseudo-hash being case sensitive.
-rw-r--r-- | src/command_parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |