From 0173277372e2962b8f5703a0ebad7892dda15e6c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 Mar 2014 21:50:49 +0000 Subject: end of the old MC API git-svn-id: http://svn.miranda-ng.org/main/trunk@8534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/subst.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TipperYM/src/subst.cpp') diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index fe6cfe6e30..ad64b02afe 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -413,13 +413,13 @@ bool GetSysSubstText(MCONTACT hContact, TCHAR *swzRawSpec, TCHAR *buff, int buff char *szProto = GetContactProto(hContact); if (szProto && !strcmp(szProto, META_PROTO)) { - iNumber = CallService(MS_MC_GETNUMCONTACTS, hContact, 0); - hTmpContact = (MCONTACT)CallService(MS_MC_GETSUBCONTACT, hContact, 0); + iNumber = db_mc_getSubCount(hContact); + hTmpContact = db_mc_getSub(hContact, 0); } for (int i = 0; i < iNumber; i++) { if (i > 0) - hTmpContact = (MCONTACT)CallService(MS_MC_GETSUBCONTACT, hContact, i); + hTmpContact = db_mc_getSub(hContact, i); dwRecountTs = db_get_dw(hTmpContact, MODULE, "LastCountTS", 0); dwTime = (DWORD)time(0); dwDiff = (dwTime - dwRecountTs); -- cgit v1.2.3