]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_user.cpp
Move _ext to replace the original, SVSSILENCE comes next
[user/henk/code/inspircd.git] / src / commands / cmd_user.cpp
index 0f64600e90cba76a2b4b799f66f813cfde8f5838..3ee96b2f9fc8e806ba0689d04b1b04800ee2f5b6 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -19,7 +19,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
        return new CommandUser(Instance);
 }
 
-CmdResult CommandUser::Handle (const char** parameters, int pcnt, User *user)
+CmdResult CommandUser::Handle (const char* const* parameters, int, User *user)
 {
        /* A user may only send the USER command once */
        if (!(user->registered & REG_USER))
@@ -30,7 +30,7 @@ CmdResult CommandUser::Handle (const char** parameters, int pcnt, 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** parameters, int pcnt, 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;
        }