summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
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/proto.cpp
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/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 10cf2591bf..9f37b2a8b8 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -162,11 +162,6 @@ int FacebookProto::SetStatus(int new_status)
m_iDesiredStatus = new_status;
break;
- // TODO RM: needed/useful?
- case ID_STATUS_CONNECTING:
- m_iDesiredStatus = ID_STATUS_OFFLINE;
- break;
-
case ID_STATUS_IDLE:
default:
m_iDesiredStatus = ID_STATUS_INVISIBLE;
@@ -178,8 +173,8 @@ int FacebookProto::SetStatus(int new_status)
break;
}
- if (m_iStatus == ID_STATUS_CONNECTING) {
- LOG("===== Status is connecting, no change");
+ if (new_status != ID_STATUS_OFFLINE && m_iStatus == ID_STATUS_CONNECTING) {
+ LOG("===== Status is already connecting, no change");
return 0;
}