diff options
author | Nvinside <Nvinside@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2011-07-04 20:23:09 +0000 |
---|---|---|
committer | Nvinside <Nvinside@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2011-07-04 20:23:09 +0000 |
commit | bfe65d092843f35fa2b9664c1dfe1140779d715a (patch) | |
tree | 561aaf958633fa2415c06e187b54e0c7a23c83ef /MirOTR | |
parent | 1ff3c50ce30716df520e7a1a3a88cb8cae33b49c (diff) |
possible metacontact fix (thanks the_nic for this patch)
git-svn-id: http://mirotr.googlecode.com/svn/trunk@56 eced67a3-f377-a0ae-92ae-d6de1850b05a
Diffstat (limited to 'MirOTR')
-rw-r--r-- | MirOTR/mirotrmenu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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);
|