From f215ec602f91866d3fc599bf168337fd06739c4d Mon Sep 17 00:00:00 2001 From: Nicolas Martyanoff Date: Thu, 23 Jan 2014 12:44:07 +0100 Subject: [PATCH] Include the command name in ERR_INVALIDCAPCMD messages As described in the IRCv3 Client Capability Negotiation document (http://ircv3.org/specification/capability-negotiation-3.1). --- src/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.cpp b/src/Client.cpp index 0fd885a4..d41294a0 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -927,6 +927,6 @@ void CClient::HandleCap(const CString& sLine) } RespondCap("ACK :" + sList.TrimSuffix_n(" ")); } else { - PutClient(":irc.znc.in 410 " + GetNick() + " :Invalid CAP subcommand"); + PutClient(":irc.znc.in 410 " + GetNick() + " " + sSubCmd + " :Invalid CAP subcommand"); } }