diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-02-08 19:38:10 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-02-08 19:38:10 +0000 |
commit | 847e4465e3d8f0fba3428f467ce39a0e7770e26d (patch) | |
tree | d01198d74c01166281a1a01a2cbe2b9e5e78dc45 | |
parent | af4aef09f6ca4973104a3f586c00caf0234c2efa (diff) |
Facebook: Fixed getting friendship requests.
git-svn-id: http://svn.miranda-ng.org/main/trunk@3483 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 75d1c05dda..e57eec69da 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -569,7 +569,7 @@ void FacebookProto::ProcessFriendRequests( void* ) }
// Parse it
- std::string reqs = utils::text::source_get_value(&resp.data, 2, "<div class=\"mRequestItem", "al aps\">");
+ std::string reqs = utils::text::source_get_value(&resp.data, 2, "class=\"mRequestItem", "al aps\">");
std::string::size_type pos = 0;
std::string::size_type pos2 = 0;
@@ -577,9 +577,9 @@ void FacebookProto::ProcessFriendRequests( void* ) while (!last && !reqs.empty()) {
std::string req;
- if ((pos2 = reqs.find("<div class=\"mRequestItem", pos)) != std::string::npos) {
+ if ((pos2 = reqs.find("class=\"mRequestItem", pos)) != std::string::npos) {
req = reqs.substr(pos, pos2 - pos);
- pos = pos2 + 24;
+ pos = pos2 + 19;
} else {
req = reqs.substr(pos);
last = true;
|