From 04c18aa4ab21f78ddd29fcbdc18afba148f96135 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 24 Jun 2013 09:23:01 +0000 Subject: Skype: - updated icons - added server side ignore list - removed bookmsrks git-svn-id: http://svn.miranda-ng.org/main/trunk@5110 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_instances.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'protocols/Skype/src/skype_instances.cpp') diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp index c0a6ed0bd6..8a4c2b6f99 100644 --- a/protocols/Skype/src/skype_instances.cpp +++ b/protocols/Skype/src/skype_instances.cpp @@ -72,3 +72,17 @@ void CSkypeProto::UninitInstances() { instanceList.destroy(); } + +CSkypeProto* CSkypeProto::GetContactInstance(HANDLE hContact) +{ + char *proto = (char *)::CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); + + if (proto == NULL) + return NULL; + + for (int i = 0; i < CSkypeProto::instanceList.getCount(); i++) + if ( !::strcmp(proto, CSkypeProto::instanceList[i]->m_szModuleName)) + return CSkypeProto::instanceList[i]; + + return NULL; +} \ No newline at end of file -- cgit v1.2.3