mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Show 410 to client for unknown CAP subcommand.
It's in CAP specs.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user