]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_pass.cpp
Fix extra End of /STATS on spanningtree override of stats c and n.
[user/henk/code/inspircd.git] / src / commands / cmd_pass.cpp
index b9b55d007aba5a7bdf5e7d96eda6740f862dafda..300479df31848cde604583f75c004dab45802000 100644 (file)
@@ -24,7 +24,7 @@ CmdResult CommandPass::Handle (const std::vector<std::string>& parameters, User
        // Check to make sure they havnt registered -- Fix by FCS
        if (user->registered == REG_ALL)
        {
-               user->WriteNumeric(462, "%s :You may not reregister",user->nick.c_str());
+               user->WriteNumeric(ERR_ALREADYREGISTERED, "%s :You may not reregister",user->nick.c_str());
                return CMD_FAILURE;
        }
        ConnectClass* a = user->GetClass();