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
This commit is contained in:
psychon
2010-06-30 17:39:39 +00:00
parent 84abd9ec1a
commit 22a641a08c

View File

@@ -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;