summaryrefslogtreecommitdiff
path: root/src/commands/cmd_user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_user.cpp')
-rw-r--r--src/commands/cmd_user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_user.cpp b/src/commands/cmd_user.cpp
index 8f056d83f..3ee96b2f9 100644
--- a/src/commands/cmd_user.cpp
+++ b/src/commands/cmd_user.cpp
@@ -30,7 +30,7 @@ CmdResult CommandUser::Handle (const char* const* parameters, int, User *user)
* RFC says we must use this numeric, so we do. Let's make it a little more nub friendly though. :)
* -- Craig, and then w00t.
*/
- user->WriteServ("461 %s USER :Your username is not valid",user->nick);
+ user->WriteNumeric(461, "%s USER :Your username is not valid",user->nick);
return CMD_FAILURE;
}
else
@@ -47,7 +47,7 @@ CmdResult CommandUser::Handle (const char* const* parameters, int, User *user)
}
else
{
- user->WriteServ("462 %s :You may not reregister",user->nick);
+ user->WriteNumeric(462, "%s :You may not reregister",user->nick);
return CMD_FAILURE;
}