From 89e99bfe351171dea0a16e35d53abff5399183a0 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 30 Jul 2015 22:01:11 +0100 Subject: [PATCH] Support "CAP :END" Thanks to jaybe for complaining about this. --- src/Client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.cpp b/src/Client.cpp index fce77421..0f097379 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -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;