From 1c6d20e73c9369eb57b255188b59d784d0f2730e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 28 Feb 2023 14:30:35 +0000 Subject: Refactor the password checking API. - Rename from (On)PassCompare to (On)CheckPassword. - Fix the order of the arguments to be password, hash, value. This makes more sense than what it was previously. - Fix the code documentation to not be complete nonsense and not reference ancient outdated APIs. --- src/modules/m_customtitle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_customtitle.cpp') diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index ccc9c37f8..037e2f769 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -53,7 +53,7 @@ struct CustomTitle final bool CheckPass(const std::string& pass) const { - return InspIRCd::PassCompare(password, pass, hash); + return InspIRCd::CheckPassword(password, hash, pass); } }; -- cgit v1.3.1-10-gc9f91