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.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/commands/cmd_pass.cpp b/src/commands/cmd_pass.cpp
index 6219118ee..21b5b2759 100644
--- a/src/commands/cmd_pass.cpp
+++ b/src/commands/cmd_pass.cpp
@@ -36,19 +36,13 @@ class CommandPass : public Command
CmdResult CommandPass::Handle (const std::vector<std::string>& parameters, User *user)
{
- // Check to make sure they havnt registered -- Fix by FCS
+ // Check to make sure they haven't registered -- Fix by FCS
if (user->registered == REG_ALL)
{
user->WriteNumeric(ERR_ALREADYREGISTERED, "%s :You may not reregister",user->nick.c_str());
return CMD_FAILURE;
}
- ConnectClass* a = user->GetClass();
- if (!a)
- return CMD_FAILURE;
-
- user->password.assign(parameters[0], 0, 63);
- if (!ServerInstance->PassCompare(user, a->pass.c_str(), parameters[0].c_str(), a->hash.c_str()))
- user->haspassed = true;
+ user->password = parameters[0];
return CMD_SUCCESS;
}