diff options
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 171341701c..fbbbb0c657 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -175,23 +175,16 @@ void FacebookProto::ProcessFriendList(void* data) // Update gender
if (getByte(hContact, "Gender", 0) != fbu->gender)
setByte(hContact, "Gender", fbu->gender);
-
- // Update name
- DBVARIANT dbv;
- bool update_required = true;
-
- // TODO: remove in some future version?
+
+ // TODO: remove this in some future version?
+ // Remove old useless "RealName" field
ptrA realname(getStringA(hContact, "RealName"));
if (realname != NULL) {
delSetting(hContact, "RealName");
}
- else if (!getStringUtf(hContact, FACEBOOK_KEY_NICK, &dbv))
- {
- update_required = strcmp(dbv.pszVal, fbu->real_name.c_str()) != 0;
- db_free(&dbv);
- }
- if (update_required)
- {
+
+ // Update real name and nick
+ if (!fbu->real_name.empty()) {
SaveName(hContact, fbu);
}
|