summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-05 15:45:59 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-05 15:45:59 +0100
commita58f0c00f1153f90701db07b033cf0576e9999e9 (patch)
treeffb63a9765748dcefae6eba18a71277a50a43af5 /src/modules
parent9ac2eae1f0d663cb3b2fc05d6d37b07dcfd9025e (diff)
m_cap Reject CAP CLEAR from clients newer than 3.1
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cap.cpp2
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);