aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-02-28 14:30:35 +0000
committerGravatar Sadie Powell2023-02-28 14:38:44 +0000
commit1c6d20e73c9369eb57b255188b59d784d0f2730e (patch)
treecd80f50659a8e78b609daee90791f95e3da174e5 /src/modules.cpp
parentFix some unnecessary boolean explicit checks. (diff)
downloadinspircd++-1c6d20e73c9369eb57b255188b59d784d0f2730e.tar.gz
inspircd++-1c6d20e73c9369eb57b255188b59d784d0f2730e.tar.bz2
inspircd++-1c6d20e73c9369eb57b255188b59d784d0f2730e.zip
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.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 63e5b6ab1..13ff2d9c9 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -132,7 +132,7 @@ ModResult Module::OnCheckBan(User*, Channel*, const std::string&) { DetachEvent(
ModResult Module::OnPreChangeHost(LocalUser*, const std::string&) { DetachEvent(I_OnPreChangeHost); return MOD_RES_PASSTHRU; }
ModResult Module::OnPreChangeRealName(LocalUser*, const std::string&) { DetachEvent(I_OnPreChangeRealName); return MOD_RES_PASSTHRU; }
ModResult Module::OnPreTopicChange(User*, Channel*, const std::string&) { DetachEvent(I_OnPreTopicChange); return MOD_RES_PASSTHRU; }
-ModResult Module::OnPassCompare(const std::string& password, const std::string& input, const std::string& hashtype) { DetachEvent(I_OnPassCompare); return MOD_RES_PASSTHRU; }
+ModResult Module::OnCheckPassword(const std::string&, const std::string&, const std::string&) { DetachEvent(I_OnCheckPassword); return MOD_RES_PASSTHRU; }
void Module::OnPostConnect(User*) { DetachEvent(I_OnPostConnect); }
void Module::OnUserPostMessage(User*, const MessageTarget&, const MessageDetails&) { DetachEvent(I_OnUserPostMessage); }
void Module::OnUserMessageBlocked(User*, const MessageTarget&, const MessageDetails&) { DetachEvent(I_OnUserMessageBlocked); }