diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-02 22:11:14 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-02 22:11:14 +0000 |
commit | 5870145ac255da65f5bf4ff0fae4715cbb930ec9 (patch) | |
tree | 91684986ad437786fe85ba6a18973c62ebd3b02a /src/cmd_user.cpp | |
parent | ef960ee420460e437b49e8085c3f1158c60752b9 (diff) |
This needs some general QA-ing. Add support to new parser (introduced in 1.1) for empty final params (just the colon)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6731 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_user.cpp')
-rw-r--r-- | src/cmd_user.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp index 82949a665..fc5ed7bb1 100644 --- a/src/cmd_user.cpp +++ b/src/cmd_user.cpp @@ -27,7 +27,8 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user) /* A user may only send the USER command once */ if (!(user->registered & REG_USER)) { - if (!ServerInstance->IsIdent(parameters[0])) { + if (!*parameters[3] || !ServerInstance->IsIdent(parameters[0])) + { // This kinda Sucks, According to the RFC thou, its either this, // or "You have already registered" :p -- Craig user->WriteServ("461 %s USER :Not enough parameters",user->nick); |