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/IEView/src/HTMLBuilder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/IEView') diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index 6557980145..67bf8f0161 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -149,7 +149,7 @@ char* HTMLBuilder::getRealProto(MCONTACT hContact) char *szProto = mir_strdup(GetContactProto(hContact)); if (szProto != NULL && !strcmp(szProto, META_PROTO)) { - hContact = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, hContact, 0); + hContact = db_mc_getMostOnline(hContact); if (hContact != NULL) { mir_free(szProto); szProto = mir_strdup(GetContactProto(hContact)); @@ -161,7 +161,7 @@ char* HTMLBuilder::getRealProto(MCONTACT hContact) char *HTMLBuilder::getRealProto(MCONTACT hContact, const char *szProto) { if (szProto != NULL && !strcmp(szProto, META_PROTO)) { - hContact = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, hContact, 0); + hContact = db_mc_getMostOnline(hContact); if (hContact != NULL) return mir_strdup(GetContactProto(hContact)); } @@ -172,7 +172,7 @@ MCONTACT HTMLBuilder::getRealContact(MCONTACT hContact) { char *szProto = GetContactProto(hContact); if (szProto != NULL && !strcmp(szProto, META_PROTO)) - hContact = (MCONTACT)CallService(MS_MC_GETMOSTONLINECONTACT, hContact, 0); + hContact = db_mc_getMostOnline(hContact); return hContact; } -- cgit v1.2.3