diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-02 22:25:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-02 22:25:19 +0000 |
commit | 80b7db360de994d4509ea87c4325634f53d9d4ff (patch) | |
tree | b18e68ed839469d8536d0a368513776de4574629 /src | |
parent | ffdd357e073819fd617af45c86c2499597380d50 (diff) |
"NICK :" did nothing and said nothing. It now says erroneous nick and uses the correct numeric.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6733 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_nick.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 70bb5a63b..2725f1a3c 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -33,7 +33,11 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user) char oldnick[NICKMAX]; if (!*parameters[0] || !*user->nick) + { + /* We cant put blanks in the parameters, so for this (extremely rare) issue we just put '* *' here. */ + user->WriteServ("432 * * :Erroneous Nickname"); return CMD_FAILURE; + } if (irc::string(user->nick) == irc::string(parameters[0])) { |