diff options
| author | 2015-12-05 15:45:59 +0100 | |
|---|---|---|
| committer | 2015-12-05 15:45:59 +0100 | |
| commit | a58f0c00f1153f90701db07b033cf0576e9999e9 (patch) | |
| tree | ffb63a9765748dcefae6eba18a71277a50a43af5 /src/modules/m_cap.cpp | |
| parent | m_cap Learn the supported capability negotiation protocol of a client from CA... (diff) | |
m_cap Reject CAP CLEAR from clients newer than 3.1
Diffstat (limited to 'src/modules/m_cap.cpp')
| -rw-r--r-- | src/modules/m_cap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 4411306ed..8ba28001e 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -228,7 +228,7 @@ class CommandCap : public SplitCommand manager.HandleList(result, user, is_ls); DisplayResult(user, result); } - else if (subcommand == "CLEAR") + else if ((subcommand == "CLEAR") && (manager.GetProtocol(user) == Cap::CAP_LEGACY)) { std::string result = "ACK :"; manager.HandleClear(user, result); |
