From bfe65d092843f35fa2b9664c1dfe1140779d715a Mon Sep 17 00:00:00 2001 From: Nvinside Date: Mon, 4 Jul 2011 20:23:09 +0000 Subject: possible metacontact fix (thanks the_nic for this patch) git-svn-id: http://mirotr.googlecode.com/svn/trunk@56 eced67a3-f377-a0ae-92ae-d6de1850b05a --- MirOTR/mirotrmenu.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'MirOTR') diff --git a/MirOTR/mirotrmenu.cpp b/MirOTR/mirotrmenu.cpp index 0d2d5eb..005d8fb 100644 --- a/MirOTR/mirotrmenu.cpp +++ b/MirOTR/mirotrmenu.cpp @@ -87,10 +87,14 @@ INT_PTR MirOTRMenuCheckService(WPARAM wParam,LPARAM) return FALSE; cmep = ( lpMirOTRMenuExecParam )pcpp->MenuItemOwnerData; - if ( cmep == NULL ) //this is root...build it + if ( cmep == NULL ) //this is rootsection...build it return TRUE; - HANDLE hContact = (HANDLE)pcpp->wParam; + HANDLE hContact = (HANDLE)pcpp->wParam, hSub; + if(options.bHaveMetaContacts && (hSub = (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT, (WPARAM)hContact, 0)) != 0) { + hContact = hSub; + } + TrustLevel level = ( TrustLevel )otr_context_get_trust(otrl_context_find_miranda(otr_user_state, hContact)); mi.cbSize = sizeof(mi); -- cgit v1.2.3