diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-25 18:11:20 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-25 18:11:20 +0000 |
commit | 0a5bd1c2f123bc03b5014e6332689a5fcd3c9a1a (patch) | |
tree | 8b04685aaa951a9c130f5c49034b13d93a00ff52 /protocols/Skype/src/skype_contacts.cpp | |
parent | a036396be89ba6a39b38417f37d59ed91ebab7b2 (diff) |
- fixed some issues with contact adding and authorization
git-svn-id: http://svn.miranda-ng.org/main/trunk@2075 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r-- | protocols/Skype/src/skype_contacts.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp index 60d062f9cd..23a47699f3 100644 --- a/protocols/Skype/src/skype_contacts.cpp +++ b/protocols/Skype/src/skype_contacts.cpp @@ -787,9 +787,26 @@ HANDLE CSkypeProto::AddContactBySid(const wchar_t* sid, const wchar_t* nick, DWO ::CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hContact, (LPARAM)this->m_szModuleName);
this->SetSettingString(hContact, "sid", sid);
-
this->SetSettingString(hContact, "Nick", nick);
- //::DBWriteContactSettingWString(hContact, "CList", "MyHandle", displayName);
+ this->SetSettingByte(hContact, "Auth", 1);
+
+ CContact::Ref contact;
+ if (g_skype->GetContact(::mir_u2a(sid), contact))
+ {
+ contact.fetch();
+ bool result;
+ if (contact->IsMemberOfHardwiredGroup(CContactGroup::ALL_KNOWN_CONTACTS, result) && result)
+ {
+ CContactGroup::Ref group;
+ if (g_skype->GetHardwiredContactGroup(CContactGroup::ALL_KNOWN_CONTACTS, group))
+ {
+ group.fetch();
+ group->AddContact(contact);
+ }
+ }
+ }
+
+ this->UpdateContactProfile(hContact, contact);
if (flags & PALF_TEMPORARY)
{
|