summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-25 16:23:47 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-25 16:23:47 +0000
commitb2e29d4d5ad48ccfd9071f96eb84572145a1fce1 (patch)
treeee52ad84529c5aa6e9d47e25b0f59d40fdd842ae /protocols/Skype/src/skype_proto.cpp
parent8df1a93786fdae3a67cd64b1eaff09821ce7f84f (diff)
- fixed auth menus
git-svn-id: http://svn.miranda-ng.org/main/trunk@2069 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.cpp')
-rw-r--r--protocols/Skype/src/skype_proto.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp
index 750ea27a12..a72ce2a76b 100644
--- a/protocols/Skype/src/skype_proto.cpp
+++ b/protocols/Skype/src/skype_proto.cpp
@@ -117,7 +117,18 @@ int __cdecl CSkypeProto::AuthRecv(HANDLE hContact, PROTORECVEVENT* pre)
int __cdecl CSkypeProto::AuthRequest(HANDLE hContact, const TCHAR* szMessage)
{
- return CSkypeProto::RequestAuth((WPARAM)hContact, (LPARAM)szMessage);
+ if (this->IsOnline() && hContact)
+ {
+ HANDLE hContact = (HANDLE)hContact;
+ CContact::Ref contact;
+ SEString sid(::mir_u2a(this->GetSettingString(hContact, "sid")));
+ if (g_skype->GetContact(sid, contact))
+ contact->SendAuthRequest(::mir_u2a(szMessage));
+
+ return 0;
+ }
+
+ return 1;
}
HANDLE __cdecl CSkypeProto::ChangeInfo( int iInfoType, void* pInfoData ) { return 0; }