From 80b7db360de994d4509ea87c4325634f53d9d4ff Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 2 Apr 2007 22:25:19 +0000 Subject: "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 --- src/cmd_nick.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cmd_nick.cpp') 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])) { -- cgit v1.3.1-10-gc9f91