From 581204a18bc5a50d1c8a7412e147e560503d11b8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 30 May 2014 15:31:28 +0000 Subject: db_mc_getMostOnline - a handy helper for MS_MC_GETMOSTONLINECONTACT git-svn-id: http://svn.miranda-ng.org/main/trunk@9372 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickContacts/src/quickcontacts.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/QuickContacts/src') diff --git a/plugins/QuickContacts/src/quickcontacts.cpp b/plugins/QuickContacts/src/quickcontacts.cpp index 1b9f82ad51..6cd7065ba3 100644 --- a/plugins/QuickContacts/src/quickcontacts.cpp +++ b/plugins/QuickContacts/src/quickcontacts.cpp @@ -455,12 +455,9 @@ void EnableButtons(HWND hwndDlg, MCONTACT hContact) else { // Is a meta? - if (ServiceExists(MS_MC_GETMOSTONLINECONTACT)) - { - MCONTACT hSub = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, hContact, 0); - if (hSub != NULL) - hContact = hSub; - } + MCONTACT hSub = db_mc_getMostOnline(hContact); + if (hSub != NULL) + hContact = hSub; // Get caps INT_PTR caps = 0; -- cgit v1.2.3