summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-09-27 11:44:58 +0000
committerRobert Pösel <robyer@seznam.cz>2013-09-27 11:44:58 +0000
commit0c7b52a9973306c6896f3dd8e46eb9bcc4cffffb (patch)
tree2f345aa6bd587e5593cc262ad4a9bcbbf2231230 /protocols/FacebookRM/src/communication.cpp
parentdae67fa8059f77a0bd2cbf7e69e0a2d6a3e59a3f (diff)
Facebook: Save names separately into first, second and last name fields
git-svn-id: http://svn.miranda-ng.org/main/trunk@6247 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 27ddd33c68..e48bfd676c 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -874,8 +874,7 @@ bool facebook_client::home()
// Get real_name
this->self_.real_name = utils::text::source_get_value(&resp.data, 2, "<strong class=\"profileName\">", "</strong>");
if (!this->self_.real_name.empty()) {
- db_set_utf(NULL, parent->m_szModuleName, FACEBOOK_KEY_NAME, this->self_.real_name.c_str());
- db_set_utf(NULL, parent->m_szModuleName, FACEBOOK_KEY_NICK, this->self_.real_name.c_str());
+ parent->SaveName(NULL, &this->self_);
parent->Log(" Got self real name: %s", this->self_.real_name.c_str());
} else {
client_notify(TranslateT("Something happened to Facebook. Maybe there was some major update so you should wait for an update."));