summaryrefslogtreecommitdiff
path: root/metacontacts/meta_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'metacontacts/meta_menu.c')
-rw-r--r--metacontacts/meta_menu.c6
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