summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw/src/clistmod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_mw/src/clistmod.cpp')
-rw-r--r--plugins/Clist_mw/src/clistmod.cpp15
1 files changed, 1 insertions, 14 deletions
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);
}