diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-01 20:57:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-01 20:57:42 +0000 |
commit | 2cfcca8007d5fe3af11f51614d7b6c56e3cb242e (patch) | |
tree | d361839c3197362034775d7c4553f658bb5d0a4f /src/cmd_pass.cpp | |
parent | 710777b2a78eef3654224fd659a7bac717691008 (diff) |
Fixes to typos and change to return by reference on GetClass
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2725 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_pass.cpp')
-rw-r--r-- | src/cmd_pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_pass.cpp b/src/cmd_pass.cpp index 0e40fea81..9bc6c1ae7 100644 --- a/src/cmd_pass.cpp +++ b/src/cmd_pass.cpp @@ -70,9 +70,9 @@ 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); + ConnectClass a = GetClass(user); strlcpy(user->password,parameters[0],MAXBUF); - if (!strcmp(parameters[0],a->pass.c_str())) + if (!strcmp(parameters[0],a.pass.c_str())) { user->haspassed = true; } |