diff options
| author | 2020-03-11 13:58:45 +0000 | |
|---|---|---|
| committer | 2020-03-11 13:58:45 +0000 | |
| commit | 55882c39f1025e29674c42741ee1e00ec8c2169e (patch) | |
| tree | d9336cf6e47661e6e3b7e2e138897e711549a12d /src/command_parse.cpp | |
| parent | Fix unnecessary inlining in command handler constructors. (diff) | |
Fix detection of the "plaintext" pseudo-hash being case sensitive.
Diffstat (limited to 'src/command_parse.cpp')
| -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); |
