diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-05 15:45:59 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-05 15:45:59 +0100 |
commit | a58f0c00f1153f90701db07b033cf0576e9999e9 (patch) | |
tree | ffb63a9765748dcefae6eba18a71277a50a43af5 /src | |
parent | 9ac2eae1f0d663cb3b2fc05d6d37b07dcfd9025e (diff) |
m_cap Reject CAP CLEAR from clients newer than 3.1
Diffstat (limited to 'src')
-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); |