mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user