diff options
Diffstat (limited to 'src')
-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") |