mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-24 01:49:02 -04:00
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:
parent
80b7db360d
commit
980e2f294c
@ -34,8 +34,8 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
|
|||||||
|
|
||||||
if (!*parameters[0] || !*user->nick)
|
if (!*parameters[0] || !*user->nick)
|
||||||
{
|
{
|
||||||
/* We cant put blanks in the parameters, so for this (extremely rare) issue we just put '* *' here. */
|
/* We cant put blanks in the parameters, so for this (extremely rare) issue we just put '*' here. */
|
||||||
user->WriteServ("432 * * :Erroneous Nickname");
|
user->WriteServ("432 %s * :Erroneous Nickname", *user->nick ? user->nick : "*");
|
||||||
return CMD_FAILURE;
|
return CMD_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user