diff options
-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])) { |