From 22a641a08ca0ee65e302e031c6c5d8cc7898c075 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 30 Jun 2010 17:39:39 +0000 Subject: [PATCH] Correctly handle CAP REQ The old code only looked at the first capability request. Found and patched by DarthGandalf, thanks. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2048 726aef4b-f618-498e-8847-2d620e286838 --- Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client.cpp b/Client.cpp index 3ee3bebf..a25a2616 100644 --- a/Client.cpp +++ b/Client.cpp @@ -796,7 +796,7 @@ void CClient::HandleCap(const CString& sLine) VCString vsTokens; VCString::iterator it; - sLine.Token(2).TrimPrefix_n(":").Split(" ", vsTokens, false); + sLine.Token(2, true).TrimPrefix_n(":").Split(" ", vsTokens, false); for (it = vsTokens.begin(); it != vsTokens.end(); ++it) { bool bVal = true;