summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-10 19:39:55 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-10 19:39:55 +0000
commit4ef6612404549093658e933cac68e412d69765b6 (patch)
tree2c977504667de29e0ce58991597ee2d782cb99f1 /protocols/FacebookRM
parentae33d0202eb87d29550e3d23fcf16d2304d2da0a (diff)
Facebook: don't switch typing contacts to online when we are not online
git-svn-id: http://svn.miranda-ng.org/main/trunk@6861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 3ae668911e..3b56b00abb 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -591,7 +591,7 @@ int facebook_json_parser::parse_messages(void* data, std::vector< facebook_messa
HANDLE hContact = proto->AddToContactList(&fbu, CONTACT_FRIEND);
- if (proto->getWord(hContact, "Status", 0) == ID_STATUS_OFFLINE)
+ if (proto->isOnline() && proto->getWord(hContact, "Status", 0) == ID_STATUS_OFFLINE)
proto->setWord(hContact, "Status", ID_STATUS_ONLINE);
JSONNODE *st = json_get(it, "st");