summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_instances.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-06-24 09:23:01 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-06-24 09:23:01 +0000
commit04c18aa4ab21f78ddd29fcbdc18afba148f96135 (patch)
tree7ef41d868f285bc2603b264c420bb6572d51041e /protocols/Skype/src/skype_instances.cpp
parent90619452ae4429a71a3034cb3db72adc275487bf (diff)
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
Diffstat (limited to 'protocols/Skype/src/skype_instances.cpp')
-rw-r--r--protocols/Skype/src/skype_instances.cpp14
1 files changed, 14 insertions, 0 deletions
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