From 59469a44731feba111a76f0154c42bb3fc5bb04e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Jul 2014 15:43:46 +0000 Subject: removing direct access to metas: Scriver git-svn-id: http://svn.miranda-ng.org/main/trunk@9925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/msglog.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/Scriver/src/msglog.cpp') diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 585cd5f7ab..096e106ea1 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -916,12 +916,10 @@ void StreamInEvents(HWND hwndDlg, HANDLE hDbEventFirst, int count, int fAppend) SMADD_RICHEDIT3 smre; smre.cbSize = sizeof(SMADD_RICHEDIT3); smre.hwndRichEditControl = GetDlgItem(hwndDlg, IDC_LOG); - smre.Protocolname = dat->szProto; - if (dat->szProto != NULL && strcmp(dat->szProto, META_PROTO) == 0) { - MCONTACT hContact = db_mc_getMostOnline(dat->windowData.hContact); - if (hContact != NULL) - smre.Protocolname = GetContactProto(hContact); - } + + MCONTACT hContact = db_mc_getSrmmSub(dat->windowData.hContact); + smre.Protocolname = (hContact != NULL) ? GetContactProto(hContact) : dat->szProto; + if (fi.chrg.cpMin > 0) { sel.cpMin = fi.chrg.cpMin; sel.cpMax = -1; -- cgit v1.2.3