diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-26 06:22:23 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-26 06:22:23 +0000 |
commit | 25e1bb7de910ad2b478a44f538d90b54eb9f9acd (patch) | |
tree | 35ed9b4c985f9b63f2ea4362c3777f999858689b /protocols/Skype/src | |
parent | 0e9c8d877de6c4890097fe81c570ce109d0ad512 (diff) |
removed first name writing
git-svn-id: http://svn.miranda-ng.org/main/trunk@2503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src')
-rw-r--r-- | protocols/Skype/src/skype_contacts.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
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);
|