diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-23 15:43:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-23 15:43:46 +0000 |
commit | 59469a44731feba111a76f0154c42bb3fc5bb04e (patch) | |
tree | 2abca57dffa8bbf55be2b43d7d8ed669d542e529 /plugins/Scriver/src/msglog.cpp | |
parent | 480aab2b3ffb0b439e160a8c716ef0d982af1acf (diff) |
removing direct access to metas: Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@9925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msglog.cpp')
-rw-r--r-- | plugins/Scriver/src/msglog.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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;
|