Support "CAP :END"

Thanks to jaybe for complaining about this.
This commit is contained in:
Alexey Sokolov
2015-07-30 22:01:11 +01:00
parent 8a831adf1b
commit 89e99bfe35

View File

@@ -873,8 +873,8 @@ void CClient::RespondCap(const CString& sResponse)
void CClient::HandleCap(const CString& sLine)
{
//TODO support ~ and = modifiers
CString sSubCmd = sLine.Token(1);
// This is not exactly correct, but this is protection from "CAP :END"
CString sSubCmd = sLine.Token(1).TrimPrefix_n(":");
if (sSubCmd.Equals("LS")) {
SCString ssOfferCaps;