diff options
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) |