]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_user.cpp
This fixes a deletion error here, we were using new[] and not using delete[], but...
[user/henk/code/inspircd.git] / src / cmd_user.cpp
index c0195f56e03bf2db9a8119237ebc2c5316ae03ca..42e70c1df4ca988e1a4113201acec65001ed0a63 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "configreader.h"
-#include "users.h"
+#include "inspircd.h"
 #include "commands/cmd_user.h"
 
-
-
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_user(Instance);
 }
@@ -38,8 +35,8 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
                }
                else
                {
-                       /* We're not checking ident, but I'm not sure I like the idea of '~' prefixing.. */
-                       /* XXX - The ident field is IDENTMAX+2 in size to account for +1 for the optional
+                       /*
+                        * The ident field is IDENTMAX+2 in size to account for +1 for the optional
                         * ~ character, and +1 for null termination, therefore we can safely use up to
                         * IDENTMAX here.
                         */
@@ -53,7 +50,8 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
                user->WriteServ("462 %s :You may not reregister",user->nick);
                return CMD_FAILURE;
        }
-       /* parameters 2 and 3 are local and remote hosts, ignored when sent by client connection */
+
+       /* parameters 2 and 3 are local and remote hosts, and are ignored */
        if (user->registered == REG_NICKUSER)
        {
                int MOD_RESULT = 0;