From d21e85d24b51b31cd1ad0140e8c59c4f4d3b85fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 18 Jul 2014 12:46:14 +0000 Subject: Facebook: Fix searching people for some users git-svn-id: http://svn.miranda-ng.org/main/trunk@9845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/process.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/FacebookRM/src/process.cpp') diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 0d87147a58..7dce1b8b14 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -1143,12 +1143,12 @@ void FacebookProto::SearchAckThread(void *targ) if (resp.code == HTTP_CODE_OK) { - std::string items = utils::text::source_get_value(&resp.data, 2, ""); + std::string items = utils::text::source_get_value(&resp.data, 4, ""); std::string::size_type pos = 0; std::string::size_type pos2 = 0; - while ((pos = items.find("", pos)) != std::string::npos) { + while ((pos = items.find("", pos) - pos); pos++; count++; @@ -1156,10 +1156,10 @@ void FacebookProto::SearchAckThread(void *targ) if (id.empty()) id = utils::text::source_get_value2(&item, "?ids=", "&\""); - std::string name = utils::text::source_get_value(&item, 4, "", "", "", "", ""); + std::string common = utils::text::source_get_value(&item, 4, "", "", ""); if ((pos2 = name.find("")) != std::string::npos) { nick = name.substr(pos2 + 30, name.length() - pos2 - 31); // also remove brackets around nickname @@ -1225,7 +1225,7 @@ void FacebookProto::SearchIdAckThread(void *targ) if (resp.code == HTTP_CODE_OK) { - std::string about = utils::text::source_get_value(&resp.data, 2, "