summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-21 19:07:44 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-21 19:07:44 +0100
commit22d6da594d49b6059773b1ab16e990a16dee1707 (patch)
treefc1bb8b7df3bb58021cce159ec0e51b5c7724830 /src/command_parse.cpp
parent383a68a38ab34fa8cc0884c854e8e255d927f399 (diff)
Fix numeric ERR_NOTREGISTERED not containing the user's nick
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 0dd793592..76dfc06ce 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -345,7 +345,7 @@ bool CommandParser::ProcessCommand(LocalUser *user, std::string &cmd)
if ((user->registered != REG_ALL) && (!cm->second->WorksBeforeReg()))
{
user->CommandFloodPenalty += failpenalty;
- user->WriteNumeric(ERR_NOTREGISTERED, "%s :You have not registered",command.c_str());
+ user->WriteNumeric(ERR_NOTREGISTERED, "%s %s :You have not registered", user->nick.c_str(), command.c_str());
return do_more;
}
else