summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/client.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-06-20 14:33:13 +0000
committerRobert Pösel <robyer@seznam.cz>2013-06-20 14:33:13 +0000
commitd309cbb26087c407d0f410e80a9b71e38389439d (patch)
tree833e7d0176442852acb7a31092eba4c29d2ee65d /protocols/FacebookRM/src/client.h
parent5dc50515b56903ad73c811184b0ac8b5df6d1725 (diff)
Facebook: Login procedure improvements.
- fixed approving last device - supporting security features (successful login after approved this unknown device by browser - BUT you must logout and login in your browser for correct approval! (fb bug)) - some other fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@5068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/client.h')
-rw-r--r--protocols/FacebookRM/src/client.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h
index 621326ac3c..024ba16b26 100644
--- a/protocols/FacebookRM/src/client.h
+++ b/protocols/FacebookRM/src/client.h
@@ -22,7 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#define FORCE_DISCONNECT true
+#define FORCE_DISCONNECT 1
+#define FORCE_QUIT 2
class facebook_client
{
@@ -110,7 +111,7 @@ public:
bool handle_entry(std::string method);
bool handle_success(std::string method);
- bool handle_error(std::string method, bool force_disconnect = false);
+ bool handle_error(std::string method, int force_disconnect = 0);
void __inline increment_error() { this->error_count_++; }
void __inline decrement_error() { if (error_count_ > 0) error_count_--; }