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.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 41ac1cef71..1773b51ff2 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -203,10 +203,18 @@ int FacebookProto::SetAwayMsg(int status, const PROTOCHAR *msg)
return 0;
}
-void FacebookProto::SetAwayMsgWorker(void *)
-{
- if (!last_status_msg_.empty())
- facy.set_status(last_status_msg_);
+void FacebookProto::SetAwayMsgWorker(void *p)
+{
+ if (p != NULL) {
+ status_data *data = static_cast<status_data*>(p);
+ facy.post_status(data);
+ delete data;
+ } else if (!last_status_msg_.empty()) {
+ status_data data;
+ data.text = last_status_msg_;
+ data.privacy = facy.get_privacy_type();
+ facy.post_status(&data);
+ }
}
HANDLE FacebookProto::SearchBasic(const PROTOCHAR* id)