diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-05-29 16:40:18 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-05-29 16:40:18 +0000 |
commit | f82f54f07cc84b500b4d77b0a4d5c7bcd675b53d (patch) | |
tree | 0b969b93e515789ff2825e4ef26ffb858d562ceb | |
parent | a1f316e4ddfc1c9c731688d1989d1f32a98261dd (diff) |
Facebook: Don't try to load messages when we're not online
git-svn-id: http://svn.miranda-ng.org/main/trunk@9354 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 91e0ad3bf7..c01bbab62f 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -426,6 +426,9 @@ void FacebookProto::LoadLastMessages(void *p) MCONTACT hContact = *(MCONTACT*)p; delete (MCONTACT*)p; + if (!isOnline()) + return; + std::string data = "client=mercury"; data += "&__user=" + facy.self_.user_id; data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0"); |