summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp30
1 files changed, 24 insertions, 6 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 79d2f30893..4194e2a013 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -176,6 +176,11 @@ int FacebookProto::SetStatus(int new_status)
{
debugLogA("=== Beginning SetStatus process");
+ if (new_status != ID_STATUS_OFFLINE && m_iStatus == ID_STATUS_CONNECTING) {
+ debugLogA("=== Status is already connecting, no change");
+ return 0;
+ }
+
// Routing statuses not supported by Facebook
switch (new_status)
{
@@ -196,11 +201,6 @@ int FacebookProto::SetStatus(int new_status)
break;
}
- if (new_status != ID_STATUS_OFFLINE && m_iStatus == ID_STATUS_CONNECTING) {
- debugLogA("=== Status is already connecting, no change");
- return 0;
- }
-
if (m_iStatus == m_iDesiredStatus) {
debugLogA("=== Statuses are same, no change");
return 0;
@@ -638,7 +638,25 @@ INT_PTR FacebookProto::CheckFriendRequests(WPARAM, LPARAM)
{
if (!isOffline()) {
facy.client_notify(TranslateT("Checking friend requests..."));
- ProcessFriendRequests(NULL);
+ ForkThread(&FacebookProto::ProcessFriendRequests, NULL);
+ }
+ return 0;
+}
+
+INT_PTR FacebookProto::CheckNotifications(WPARAM, LPARAM)
+{
+ if (!isOffline()) {
+ facy.client_notify(TranslateT("Checking notifications..."));
+ ForkThread(&FacebookProto::ProcessNotifications, NULL);
+ }
+ return 0;
+}
+
+INT_PTR FacebookProto::CheckOnThisDay(WPARAM, LPARAM)
+{
+ if (!isOffline()) {
+ facy.client_notify(TranslateT("Checking what happened on this day..."));
+ ForkThread(&FacebookProto::ProcessOnThisDay, NULL);
}
return 0;
}