diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-02 22:25:59 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-02 22:25:59 +0000 |
commit | 980e2f294ccb5115e0f0f0e397966f8b35ac596d (patch) | |
tree | a635d52121d03d206b6e52e4f35c66b08ee71386 /src | |
parent | 80b7db360de994d4509ea87c4325634f53d9d4ff (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_nick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index 2725f1a3c..05a66cbfc 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -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; } |