diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-01 15:56:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-01 15:56:30 +0000 |
commit | 067b84d9c98290278800ef45df9a1fc9bd4d1f4c (patch) | |
tree | 6860af2529e6dccb5baef6ed49fc05b17588b6b8 /plugins/IEView/src/HTMLBuilder.cpp | |
parent | ec6016228223c9b6f7714b9083cc3fff730d5ea7 (diff) |
IEView: custom events support
git-svn-id: http://svn.miranda-ng.org/main/trunk@7992 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/HTMLBuilder.cpp')
-rw-r--r-- | plugins/IEView/src/HTMLBuilder.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index 0c90597923..d26272f9c2 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -368,10 +368,7 @@ void HTMLBuilder::appendEventOld(IEView *view, IEVIEWEVENT *event) eventData->bIsMe = FALSE;
}
if (dbei.eventType == EVENTTYPE_MESSAGE || dbei.eventType == EVENTTYPE_URL || dbei.eventType == EVENTTYPE_JABBER_CHATSTATES) {
- DBEVENTGETTEXT temp = { &dbei, DBVT_WCHAR, newEvent.codepage };
- WCHAR* pwszEventText = (WCHAR*)CallService(MS_DB_EVENT_GETTEXT,0,(LPARAM)&temp);
- eventData->pszTextW = mir_tstrdup(pwszEventText);
- mir_free(pwszEventText);
+ eventData->pszTextW = DbGetEventTextW(&dbei, newEvent.codepage);
if (dbei.eventType == EVENTTYPE_MESSAGE)
eventData->iType = IEED_EVENT_MESSAGE;
else if (dbei.eventType == EVENTTYPE_URL)
@@ -400,6 +397,10 @@ void HTMLBuilder::appendEventOld(IEView *view, IEVIEWEVENT *event) eventData->ptszNick = DbGetEventStringT(&dbei, (char *)dbei.pBlob + 8);
eventData->iType = IEED_EVENT_SYSTEM;
}
+ else { // custom event
+ eventData->pszTextW = DbGetEventTextW(&dbei, newEvent.codepage);
+ eventData->iType = IEED_EVENT_MESSAGE;
+ }
free(dbei.pBlob);
eventData->next = NULL;
if (prevEventData != NULL)
|