diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-08 22:33:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-06-08 22:33:55 +0000 |
commit | b3ffc4752f70546b8211d5d0f1b31f7b46906eab (patch) | |
tree | de0f05ab127a147e589458565f699a10f9c01e04 | |
parent | 424ee85016ca3557b12caf2a3b7b9de9582bd17f (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
-rw-r--r-- | src/modules/m_cap.cpp | 4 |
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> ¶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") |