From f82f54f07cc84b500b4d77b0a4d5c7bcd675b53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 29 May 2014 16:40:18 +0000 Subject: 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 --- protocols/FacebookRM/src/process.cpp | 3 +++ 1 file changed, 3 insertions(+) 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"); -- cgit v1.2.3