Skip to content
Browse files

Show 410 to client for unknown CAP subcommand.

It's in CAP specs.
  • Loading branch information...
1 parent 9e4733d commit 07cb02c5d8bf070f2e71637047eec4146097067c @DarthGandalf DarthGandalf committed Jul 24, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Client.cpp
View
3 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");
}
}

0 comments on commit 07cb02c

Please sign in to comment.
Something went wrong with that request. Please try again.