From 25e1bb7de910ad2b478a44f538d90b54eb9f9acd Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 26 Nov 2012 06:22:23 +0000 Subject: removed first name writing git-svn-id: http://svn.miranda-ng.org/main/trunk@2503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_contacts.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'protocols/Skype/src') diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp index b3a59f50ac..dc227e98ba 100644 --- a/protocols/Skype/src/skype_contacts.cpp +++ b/protocols/Skype/src/skype_contacts.cpp @@ -331,21 +331,9 @@ void CSkypeProto::UpdateFullName(HANDLE hContact, CContact::Ref contact) contact->GetPropFullname(data); wchar_t* fullname = ::mir_utf8decodeW((const char*)data); if (wcscmp(fullname, L"") == 0) - { - this->DeleteSetting(hContact, "FirstName"); this->DeleteSetting(hContact, "LastName"); - } else - { - wchar_t* last = _tcstok(fullname, L" "); - wchar_t* first = _tcstok(NULL, L" "); - if (first == NULL) - { - first = L""; - } - this->SetSettingString(hContact, "LastName", last); - this->SetSettingString(hContact, "FirstName", first); - } + this->SetSettingString(hContact, "LastName", fullname); ::mir_free(fullname); } @@ -785,14 +773,7 @@ void CSkypeProto::OnContactFinded(HANDLE hSearch, CContact::Ref contact) contact->GetPropFullname(data); wchar_t *fullname = ::mir_utf8decodeW((const char*)data); - wchar_t *first = wcstok(fullname, L" "); - wchar_t *last = wcstok(NULL, L" "); - if (last != NULL) - { - last = L""; - } - isr.firstName = first; - isr.lastName = last; + isr.lastName = fullname; } { contact->GetPropEmails(data); -- cgit v1.2.3