diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-07-06 07:53:52 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-07-06 07:53:52 +0000 |
commit | 7cf07cdfae771f29937815f5dafcb74af7d35664 (patch) | |
tree | a72e434e967aa02b13d0be8f30ebdd1fc2950cbb /protocols/FacebookRM | |
parent | f558b7d9f3b59552b15a0a5a2123eaf5135e1f41 (diff) |
Facebook: Try to fix automatic logout on error in chat_state()
git-svn-id: http://svn.miranda-ng.org/main/trunk@9697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 238da89732..32b61499f8 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -976,7 +976,10 @@ bool facebook_client::chat_state(bool online) data += "&fb_dtsg=" + (!dtsg_.empty() ? dtsg_ : "0"); data += "&phstamp=0&__user=" + self_.user_id; http::response resp = flap(REQUEST_VISIBILITY, &data); - + + if (!resp.error_number) + return handle_error("chat_state"); + return handle_success("chat_state"); } |