diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-30 18:59:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-30 18:59:38 +0000 |
commit | 10bc9e42dfba6ed8be41199243d688c2e367dc0d (patch) | |
tree | 891aca91eeb2feddb6c76498c4eb880689360fe6 /plugins/MirOTR/src | |
parent | 5dac5be47f2d9af8cbceead6511ff4c0fc40bab5 (diff) |
MS_CLIST_GETSTATUSMODEDESCRIPTION & MS_CLIST_GETCONTACTDISPLAYNAME replaced with pcli->* members
git-svn-id: http://svn.miranda-ng.org/main/trunk@14459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src')
-rw-r--r-- | plugins/MirOTR/src/dllmain.cpp | 6 | ||||
-rw-r--r-- | plugins/MirOTR/src/utils.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirOTR/src/dllmain.cpp b/plugins/MirOTR/src/dllmain.cpp index d961050b49..8b80f078cc 100644 --- a/plugins/MirOTR/src/dllmain.cpp +++ b/plugins/MirOTR/src/dllmain.cpp @@ -1,6 +1,7 @@ // dllmain.cpp : Definiert den Einstiegspunkt für die DLL-Anwendung. #include "stdafx.h" +CLIST_INTERFACE *pcli;
HANDLE hEventWindow; HINSTANCE hInst; @@ -59,9 +60,8 @@ extern "C" __declspec(dllexport) int Load(void) { DEBUGOUT_T("LOAD MIROTR"); - mir_getLP( &pluginInfo ); - /* for timezones - mir_getTMI(&tmi); */ + mir_getLP(&pluginInfo); + mir_getCLI(); InitIcons(); diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp index d8e5e968e1..37edfd734a 100644 --- a/plugins/MirOTR/src/utils.cpp +++ b/plugins/MirOTR/src/utils.cpp @@ -118,14 +118,14 @@ char* contact_get_id(MCONTACT hContact, bool bNameOnError) { } } if (!pszUniqueID && bNameOnError) { - char *name = (char *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, 0); + char *name = (char *)pcli->pfnGetContactDisplayName(hContact, 0); if (name) pszUniqueID = mir_strdup(name); } return pszUniqueID; } __inline const TCHAR* contact_get_nameT(MCONTACT hContact) { - return (TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GCDNF_TCHAR); + return (TCHAR*)pcli->pfnGetContactDisplayName(hContact, 0); } TCHAR* ProtoGetNickname(const char* proto) |