If the user has a nick, use it in the numeric

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6734 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-04-02 22:25:59 +00:00
parent 80b7db360d
commit 980e2f294c

View File

@ -34,8 +34,8 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
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");
/* We cant put blanks in the parameters, so for this (extremely rare) issue we just put '*' here. */
user->WriteServ("432 %s * :Erroneous Nickname", *user->nick ? user->nick : "*");
return CMD_FAILURE;
}