summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-07-17 19:42:55 +0000
committerRobert Pösel <robyer@seznam.cz>2016-07-17 19:42:55 +0000
commit144d4abae7e3bbdd5c7e6afb9098f84ab443f475 (patch)
treee9eaed82fac22d3ab3d565c3018b91e53c7edc65 /protocols/FacebookRM/src/communication.cpp
parenta992047f2696936927f9b220592ee0edd030bc42 (diff)
Facebook: Greatly improve format of wall post's text
git-svn-id: http://svn.miranda-ng.org/main/trunk@17105 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index d0c62cae5f..128613ed06 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -768,10 +768,12 @@ void facebook_client::erase_reader(MCONTACT hContact)
}
void loginError(FacebookProto *proto, std::string error_str) {
+ utils::text::replace_all(&error_str, "<br \\/>", "\n");
+ utils::text::replace_all(&error_str, "\n\n\n", "\n\n");
+
error_str = utils::text::trim(
utils::text::html_entities_decode(
- utils::text::remove_html(
- utils::text::edit_html(error_str))));
+ utils::text::remove_html(error_str)));
proto->debugLogA("!!! Login error: %s", !error_str.empty() ? error_str.c_str() : "Unknown error");