summaryrefslogtreecommitdiff
path: root/src/commands/cmd_pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_pass.cpp')
-rw-r--r--src/commands/cmd_pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_pass.cpp b/src/commands/cmd_pass.cpp
index 3661807a9..94a7c6e87 100644
--- a/src/commands/cmd_pass.cpp
+++ b/src/commands/cmd_pass.cpp
@@ -32,7 +32,7 @@ CmdResult CommandPass::Handle (const char** parameters, int, User *user)
return CMD_FAILURE;
strlcpy(user->password,parameters[0],63);
- if (a->GetPass() == parameters[0])
+ if (!ServerInstance->PassCompare(user, a->GetPass().c_str(), parameters[0], a->GetHash().c_str()))
{
user->haspassed = true;
}