]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_user.cpp
Begone shitty safe stl warnings!
[user/henk/code/inspircd.git] / src / cmd_user.cpp
index 1a0e392c6ad2eb24caf5bb4bb0ab60e9bb82923a..386d0e5e8904502d0fb485170b1cf23916e34656 100644 (file)
@@ -17,7 +17,7 @@
 
 
 
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_user(Instance);
 }
@@ -29,9 +29,11 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
        {
                if (!ServerInstance->IsIdent(parameters[0]))
                {
-                       // This kinda Sucks, According to the RFC thou, its either this,
-                       // or "You have already registered" :p -- Craig
-                       user->WriteServ("461 %s USER :Not enough parameters",user->nick);
+                       /*
+                        * 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;
                }
                else