diff options
| author | 2008-06-08 22:33:55 +0000 | |
|---|---|---|
| committer | 2008-06-08 22:33:55 +0000 | |
| commit | b3ffc4752f70546b8211d5d0f1b31f7b46906eab (patch) | |
| tree | de0f05ab127a147e589458565f699a10f9c01e04 /src/modules/m_cap.cpp | |
| parent | Dont announce successful rehash if bail is set to true (e.g. we're booting) (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/m_cap.cpp')
| -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") |
