From 45a5b1f9b7709f8d93b57abea7ba46b44eac5707 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Oct 2013 15:13:20 +0000 Subject: - MS_CLIST_GETSTATUSMODEDESCRIPTION replaced with the direct clist call - crazy & obsolete constant GSMDF_PREFIXONLINE removed git-svn-id: http://svn.miranda-ng.org/main/trunk@6428 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FavContacts/src/main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/FavContacts/src') diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp index a8a7963966..98a10c53f0 100644 --- a/plugins/FavContacts/src/main.cpp +++ b/plugins/FavContacts/src/main.cpp @@ -389,13 +389,12 @@ static BOOL sttMeasureItem_Contact(LPMEASUREITEMSTRUCT lpmis, Options *options) DBVARIANT dbv; TCHAR *title; bool bFree = false; - if (db_get_ts(hContact, "CList", "StatusMsg", &dbv) || !*dbv.ptszVal) - { + if (db_get_ts(hContact, "CList", "StatusMsg", &dbv) || !*dbv.ptszVal) { char *proto = GetContactProto(hContact); int status = db_get_w(hContact, proto, "Status", ID_STATUS_OFFLINE); - title = (TCHAR *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, status, GSMDF_TCHAR); - } else - { + title = pcli->pfnGetStatusModeDescription(status, 0); + } + else { title = dbv.ptszVal; bFree = true; } @@ -639,7 +638,7 @@ static BOOL sttDrawItem_Contact(LPDRAWITEMSTRUCT lpdis, Options *options = NULL) bool bFree = false; if (db_get_ts(hContact, "CList", "StatusMsg", &dbv) || !*dbv.ptszVal) { int status = db_get_w(hContact, proto, "Status", ID_STATUS_OFFLINE); - title = (TCHAR *)CallService(MS_CLIST_GETSTATUSMODEDESCRIPTION, status, GSMDF_TCHAR); + title = pcli->pfnGetStatusModeDescription(status, 0); } else { title = dbv.ptszVal; -- cgit v1.2.3