summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-12-13 09:24:47 +0000
committerRobert Pösel <robyer@seznam.cz>2013-12-13 09:24:47 +0000
commit148a177548e508e81314d7b13a2c0fa9385ebd4b (patch)
tree36e3fb0f49c72717fbc2559669ce0f51755b3a18 /protocols
parent7ada983e8221df4b262b7570176a1d1fc70ad62f (diff)
Facebook: don't notify errors marked as "silent" by Facebook
git-svn-id: http://svn.miranda-ng.org/main/trunk@7168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index a0770b1783..bc18e52ddb 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -143,13 +143,15 @@ http::response facebook_client::flap(RequestType request_type, std::string* requ
title = ptrA( mir_utf8decodeA(title.c_str()));
}
+ bool silent = resp.data.find("\"silentError\":1") != std::string::npos;
+
resp.error_number = error_num;
resp.error_text = error;
resp.error_title = title;
resp.code = HTTP_CODE_FAKE_ERROR;
parent->debugLogA(" ! ! Received Facebook error: %d -- %s", error_num, error.c_str());
- if (notify_errors(request_type))
+ if (notify_errors(request_type) && !silent)
client_notify(_A2T(error.c_str()));
}
}