diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-02-08 00:18:40 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-02-08 00:18:40 +0000 |
commit | 21c835f71979bcf78ca95879354dfee9e90443c5 (patch) | |
tree | 7a913053c5b5d2974d42b8d97cdbecc2355533da /metacontacts/meta_menu.c | |
parent | 68d6e2ef5e81838360993293fbe769d613424168 (diff) |
fix for nudge show/hide menu item
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@117 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'metacontacts/meta_menu.c')
-rw-r--r-- | metacontacts/meta_menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/metacontacts/meta_menu.c b/metacontacts/meta_menu.c index 7e21456..65c58a1 100644 --- a/metacontacts/meta_menu.c +++ b/metacontacts/meta_menu.c @@ -495,9 +495,9 @@ int Meta_ModifyMenu(WPARAM wParam, LPARAM lParam) // lParam = BOOL show
{
char serviceFunc[256];
- char *proto;
- mir_snprintf(serviceFunc, 256, "%s/SendNudge", proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0));
- CallService(MS_NUDGE_SHOWMENU, (WPARAM)proto, (LPARAM)ServiceExists(serviceFunc));
+ hContact = Meta_GetMostOnline((HANDLE)wParam);
+ mir_snprintf(serviceFunc, 256, "%s/SendNudge", (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0));
+ CallService(MS_NUDGE_SHOWMENU, (WPARAM)META_PROTO, (LPARAM)ServiceExists(serviceFunc));
}
}
else
|