summaryrefslogtreecommitdiff
path: root/src/cmd_pass.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-01 20:49:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-01 20:49:25 +0000
commit75d426ed982e958738d303f6dc4053f833614915 (patch)
tree7421f9b309e476c82aeeb47b5e757076a4b85bc0 /src/cmd_pass.cpp
parent49611143fcd611f984fee818fea43db955279d70 (diff)
Changes to how classes are looked up (connects slightly faster) and fix for case sensitive passwords
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2723 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_pass.cpp')
-rw-r--r--src/cmd_pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_pass.cpp b/src/cmd_pass.cpp
index 5b640fb76..0e40fea81 100644
--- a/src/cmd_pass.cpp
+++ b/src/cmd_pass.cpp
@@ -70,11 +70,11 @@ void cmd_pass::Handle (char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"462 %s :You may not reregister",user->nick);
return;
}
+ ConnectClass* a = GetClass(user);
strlcpy(user->password,parameters[0],MAXBUF);
- if (!strcasecmp(parameters[0],Passwd(user)))
+ if (!strcmp(parameters[0],a->pass.c_str()))
{
user->haspassed = true;
}
}
-