]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_user.cpp
Fix double dot in half-cloaked resolved hosts
[user/henk/code/inspircd.git] / src / commands / cmd_user.cpp
index 8f2a309081777e1ecdc9920cb6d38dc59b1370db..e396e0c84e69b4d2f7eb14ce98c963fa81ff657c 100644 (file)
@@ -23,7 +23,7 @@ class CommandUser : public Command
  public:
        /** Constructor for user.
         */
-       CommandUser ( Module* parent) : Command(parent,"USER",0,4) { works_before_reg = true; Penalty = 0; syntax = "<username> <localhost> <remotehost> <GECOS>"; }
+       CommandUser ( Module* parent) : Command(parent,"USER",4,4) { works_before_reg = true; Penalty = 0; syntax = "<username> <localhost> <remotehost> <GECOS>"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -71,7 +71,7 @@ CmdResult CommandUser::Handle (const std::vector<std::string>& parameters, User
                ModResult MOD_RESULT;
 
                /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */
-               FIRST_MOD_RESULT(ServerInstance, OnUserRegister, MOD_RESULT, (user));
+               FIRST_MOD_RESULT(OnUserRegister, MOD_RESULT, (user));
                if (MOD_RESULT == MOD_RES_DENY)
                        return CMD_FAILURE;