summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-07 17:10:29 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-07 17:10:29 +0000
commit8d42163a160b263abf709414db8b973f74b4d355 (patch)
treed44fc6a25ced661d493c5fa9f9b138680d47805b /protocols/Skype/src/skype_database.cpp
parentecb5d187aec965f0fc021002dbf2afab22d300e8 (diff)
- second approach to adding/deleting contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@1806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r--protocols/Skype/src/skype_database.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp
index b22c632be0..38c08d80b8 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -27,7 +27,7 @@ void CSkypeProto::RaiseAuthRequestEvent(
CCSDATA ccs = {0};
ccs.szProtoService = PSR_AUTH;
- ccs.hContact = this->GetContactBySid(::mir_a2u(sid));
+ ccs.hContact = this->AddContactBySid(::mir_a2u(sid), ::mir_a2u(nick));
ccs.wParam = 0;
ccs.lParam = (LPARAM)&pre;
pre.timestamp = timestamp;
@@ -46,8 +46,8 @@ void CSkypeProto::RaiseAuthRequestEvent(
*((PDWORD)pCurBlob) = 0; pCurBlob += sizeof(DWORD);
*((PDWORD)pCurBlob) = (DWORD)ccs.hContact; pCurBlob += sizeof(DWORD);
::strcpy((char*)pCurBlob, nick); pCurBlob += ::strlen(nick) + 1;
- ::strcpy((char*)pCurBlob, firstName); pCurBlob += ::strlen(sid) + 1;
- ::strcpy((char*)pCurBlob, lastName); pCurBlob += ::strlen(sid) + 1;
+ ::strcpy((char*)pCurBlob, firstName); pCurBlob += ::strlen(firstName) + 1;
+ ::strcpy((char*)pCurBlob, lastName); pCurBlob += ::strlen(lastName) + 1;
::strcpy((char*)pCurBlob, sid); pCurBlob += ::strlen(sid) + 1;
::strcpy((char*)pCurBlob, reason);