summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index e69ad41f6..7093386aa 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -430,6 +430,7 @@ void handle_pass(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"462 %s :You may not reregister",user->nick);
return;
}
+ strlcpy(user->password,parameters[0],MAXBUF);
if (!strcasecmp(parameters[0],Passwd(user)))
{
user->haspassed = true;