mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
Use CString::StartsWith()
Replace the use of deprecated CString::Equals(str,bool,int) by CString::StartsWith(str,cs) which is more pleasant to read.
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ CString CUtils::GetSaltedHashPass(CString& sSalt) {
|
||||
|
||||
CString pass2 = CUtils::GetPass("Confirm password");
|
||||
|
||||
if (!pass1.Equals(pass2, true)) {
|
||||
if (!pass1.Equals(pass2, CString::CaseSensitive)) {
|
||||
CUtils::PrintError("The supplied passwords did not match");
|
||||
} else {
|
||||
// Construct the salted pass
|
||||
|
||||
Reference in New Issue
Block a user