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/Clist_mw/src/clistmod.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'plugins/Clist_mw/src') diff --git a/plugins/Clist_mw/src/clistmod.cpp b/plugins/Clist_mw/src/clistmod.cpp index 7c998de4db..869fcfc56c 100644 --- a/plugins/Clist_mw/src/clistmod.cpp +++ b/plugins/Clist_mw/src/clistmod.cpp @@ -50,7 +50,7 @@ int cli_IconFromStatusMode(const char *szProto,int nStatus, MCONTACT hContact) MCONTACT hActContact = hContact; if (!db_get_b(NULL, "CLC", "Meta", 0) && !strcmp(szActProto, META_PROTO)) { // substitute params by mostonline contact datas - MCONTACT hMostOnlineContact = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, (WPARAM)hActContact, 0); + MCONTACT hMostOnlineContact = db_mc_getMostOnline(hActContact); if (hMostOnlineContact && hMostOnlineContact != (MCONTACT)CALLSERVICE_NOTFOUND) { ClcCacheEntry *cacheEntry = (ClcCacheEntry *)pcli->pfnGetCacheEntry(hMostOnlineContact); if (cacheEntry && cacheEntry->szProto) { @@ -74,19 +74,6 @@ int cli_IconFromStatusMode(const char *szProto,int nStatus, MCONTACT hContact) int ExtIconFromStatusMode(MCONTACT hContact, const char *szProto,int status) { -/* if ( db_get_b( NULL, "CLC", "Meta", 0 ) == 1 ) - return pcli->pfnIconFromStatusMode(szProto,status,hContact); - - if ( szProto != NULL ) { - if (strcmp(szProto,"MetaContacts") == 0 ) { - hContact = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT,(UINT)hContact,0); - if ( hContact != 0 ) { - szProto = GetContactProto((UINT)hContact,0); - status = db_get_w(hContact,szProto,"Status",ID_STATUS_OFFLINE); - } - } - }*/ - return pcli->pfnIconFromStatusMode(szProto,status,hContact); } -- cgit v1.2.3