From 75d426ed982e958738d303f6dc4053f833614915 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 1 Jan 2006 20:49:25 +0000 Subject: 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 --- src/cmd_pass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_pass.cpp') 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; } } - -- cgit v1.2.3