summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-17 14:09:50 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-17 14:09:50 +0000
commit955305b73ea680d0f7c184eac2c56986da8a6b37 (patch)
tree16b23bf5163bdd08b71b55bd0898202324514978 /protocols/FacebookRM/src/process.cpp
parent7cbf9e427b934de647350f1eb1552a3f7ea2992b (diff)
Facebook: Fixed parsing not-ANSI nicknames when searching
git-svn-id: http://svn.miranda-ng.org/main/trunk@5400 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index b2b4cabb8f..44c90e90fe 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -757,9 +757,9 @@ void FacebookProto::SearchAckThread(void *targ)
std::string nick;
std::string common = utils::text::source_get_value(&item, 2, "<span class=\"mfss fcg\">", "</span>");
- if ((pos2 = name.find(" <span class=\"alternate_name\">")) != std::string::npos) {
- nick = name.substr(pos2 + 31, name.length() - pos2 - 32); // also remove brackets around nickname
- name = name.substr(0, pos2);
+ if ((pos2 = name.find("<span class=\"alternate_name\">")) != std::string::npos) {
+ nick = name.substr(pos2 + 30, name.length() - pos2 - 31); // also remove brackets around nickname
+ name = name.substr(0, pos2 - 1);
}
if ((pos2 = name.find(" ")) != std::string::npos) {