From b3ffc4752f70546b8211d5d0f1b31f7b46906eab Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 8 Jun 2008 22:33:55 +0000 Subject: Ignore CAP from clients that have already registered git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9877 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 986e40713..2849444b4 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -43,6 +43,10 @@ class CommandCAP : public Command CmdResult Handle (const std::vector ¶meters, 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") -- cgit v1.2.3