summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp3
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");