]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Ignore CAP from clients that have already registered
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 8 Jun 2008 22:33:55 +0000 (22:33 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 8 Jun 2008 22:33:55 +0000 (22:33 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9877 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_cap.cpp

index 986e40713c074b640e2e6cf55d5b6a2a34b24f62..2849444b408a98302349cfa1b81e2667f8340942 100644 (file)
@@ -43,6 +43,10 @@ class CommandCAP : public Command
 
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
+               /* Ignore CAP from registered clients */
+               if (user->registered == REG_ALL)
+                       return CMD_FAILURE;
+
                irc::string subcommand = parameters[0].c_str();
 
                if (subcommand == "REQ")