Show 410 to client for unknown CAP subcommand.

It's in CAP specs.
This commit is contained in:
Alexey Sokolov
2012-07-24 19:51:53 +07:00
parent 9e4733d446
commit 07cb02c5d8

View File

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