summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-08 22:33:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-08 22:33:55 +0000
commitb3ffc4752f70546b8211d5d0f1b31f7b46906eab (patch)
treede0f05ab127a147e589458565f699a10f9c01e04 /src/modules
parent424ee85016ca3557b12caf2a3b7b9de9582bd17f (diff)
Ignore CAP from clients that have already registered
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9877 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cap.cpp4
1 files changed, 4 insertions, 0 deletions
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<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")