]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_user.cpp
We were already sending FMODE +nt after each channel creation to keep services happy...
[user/henk/code/inspircd.git] / src / cmd_user.cpp
index bdae8612775d6126244bccacbfe36be3edfd24ce..dc224db76d88ba2e94fab58a540c804ddd7e78a0 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "configreader.h"
 #include "users.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);
 }
@@ -29,6 +28,10 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
        {
                if (!ServerInstance->IsIdent(parameters[0]))
                {
+                       /*
+                        * 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);
                        return CMD_FAILURE;
                }