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).
This commit is contained in:
Nicolas Martyanoff
2014-01-23 12:44:07 +01:00
parent 5950b1d68b
commit f215ec602f

View File

@@ -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");
}
}