summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp4
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]))
{