summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-25 17:09:11 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-25 17:09:11 +0000
commit0c8684347dbae1a414176968edf72ad049151592 (patch)
tree5dac9f6900ab003f9ca40b9323fe61db1c08e5c7 /protocols/FacebookRM/src/process.cpp
parenta757184e5db3112d3de0b69eec7d39b937e396bc (diff)
Facebook: Some minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 2541fe07f8..24b9c3b7d0 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -52,18 +52,17 @@ void FacebookProto::ProcessBuddyList(void* data)
char *status;
switch (fbu->status_id) {
case ID_STATUS_OFFLINE:
- status = "offline"; break;
+ status = "Offline"; break;
case ID_STATUS_ONLINE:
- status = "online"; break;
+ status = "Online"; break;
case ID_STATUS_ONTHEPHONE:
- on_mobile = true;
- status = "onthephone";
+ on_mobile = true;
+ status = "Phone";
if (!use_mobile_status)
fbu->status_id = ID_STATUS_OFFLINE;
break;
}
- LOG(" Now %s: %s", status, i->data->real_name.c_str());
if (!fbu->deleted)
{
@@ -124,6 +123,13 @@ void FacebookProto::ProcessBuddyList(void* data)
// Check avatar change
CheckAvatarChange(fbu->handle, fbu->image_url);
}
+
+ std::string name_log = fbu->real_name;
+ if (name_log.empty() && i->data->handle)
+ name_log = ptrA(getStringA(i->data->handle, FACEBOOK_KEY_NAME));
+ if (name_log.empty())
+ name_log = fbu->user_id;
+ LOG(" Now %s: %s", status, name_log.c_str());
}
LOG("***** Buddy list processed");