summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-09-12 09:50:42 +0000
committerRobert Pösel <robyer@seznam.cz>2014-09-12 09:50:42 +0000
commit8a59532193f8be2b54852fcfd828963b13877f9b (patch)
tree63a95e6c86f2118dc7b8bf1460f8ff1b33ad7c15 /protocols/FacebookRM/src
parente5724215fd499752384bcb4968d4083c8b7b1ffe (diff)
Facebook: Another attempt to get own name for some special fb version
git-svn-id: http://svn.miranda-ng.org/main/trunk@10438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 0d87cd2576..2ad9e3cd96 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -1001,6 +1001,10 @@ bool facebook_client::home()
if (this->self_.real_name.empty())
this->self_.real_name = utils::text::source_get_value(&resp.data, 5, "id=\"root", "</a>", "<div", ">", "</div>");
+ // Another attempt to get name
+ if (this->self_.real_name.empty())
+ this->self_.real_name = utils::text::source_get_value(&resp.data, 5, "id=\"root", "</td>", "<div", ">", "</td>");
+
// Get and strip optional nickname
std::string::size_type pos = this->self_.real_name.find("<span class=\"alternate_name\">");
if (pos != std::string::npos) {