diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-06-19 10:39:56 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-06-19 10:39:56 +0000 |
commit | 99081c722ac293e30d993b504851bf096b3cd5d8 (patch) | |
tree | e11cdb2040cb2ac9bb4cca7f36527c1eb48fcd04 /protocols/FacebookRM/src/contacts.cpp | |
parent | 8cc704c0ac76ac635b2ca5e40ce5a21f2686156a (diff) |
Facebook: Save contact's username into database (as key "Username")
git-svn-id: http://svn.miranda-ng.org/main/trunk@9541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 808bdef735..76939ee44b 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -212,6 +212,9 @@ MCONTACT FacebookProto::AddToContactList(facebook_user* fbu, ContactType type, b if (!fbu->real_name.empty()) SaveName(hContact, fbu); + if (!fbu->username.empty()) + setString(hContact, FACEBOOK_KEY_USERNAME, fbu->username.c_str()); + if (fbu->gender) setByte(hContact, "Gender", fbu->gender); |