From 07cb02c5d8bf070f2e71637047eec4146097067c Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 24 Jul 2012 19:51:53 +0700 Subject: [PATCH] Show 410 to client for unknown CAP subcommand. It's in CAP specs. --- src/Client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Client.cpp b/src/Client.cpp index 20082885..bacebce6 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -798,6 +798,7 @@ void CClient::RespondCap(const CString& sResponse) void CClient::HandleCap(const CString& sLine) { + //TODO support ~ and = modifiers CString sSubCmd = sLine.Token(1); if (sSubCmd.Equals("LS")) { @@ -896,5 +897,7 @@ void CClient::HandleCap(const CString& sLine) sList += "-" + *i + " "; } RespondCap("ACK :" + sList.TrimSuffix_n(" ")); + } else { + PutClient(":irc.znc.in 410 " + GetNick() + " :Invalid CAP subcommand"); } }