diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-27 18:53:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-27 18:53:50 +0000 |
commit | eea8926b61889ea80c76f9fb6b5bf5d1afe6c6eb (patch) | |
tree | b951626b03237050cdd72c501e8408ac1163e1d8 /plugins/NewXstatusNotify/src/xstatus.cpp | |
parent | b1dc0111247ffd219585458edcf24c07c0b55ddf (diff) |
old nasty perversion EVENTTYPE_STATUSCHANGE removed forever
git-svn-id: http://svn.miranda-ng.org/main/trunk@7396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/xstatus.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/xstatus.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/plugins/NewXstatusNotify/src/xstatus.cpp b/plugins/NewXstatusNotify/src/xstatus.cpp index 8add5a6218..1ca031ac7a 100644 --- a/plugins/NewXstatusNotify/src/xstatus.cpp +++ b/plugins/NewXstatusNotify/src/xstatus.cpp @@ -251,32 +251,8 @@ void LogToMessageWindow(XSTATUSCHANGE *xsc, BOOL opening) ReplaceVars(xsc, Template, templates.LogDelimiter, stzLogText);
DBGetStringDefault(xsc->hContact, MODULE, DB_LASTLOG, stzLastLog, SIZEOF(stzLastLog), _T(""));
- if (!opt.KeepInHistory || !(opt.PreventIdentical && _tcscmp(stzLastLog, stzLogText) == 0)) {
+ if (!opt.KeepInHistory || !(opt.PreventIdentical && _tcscmp(stzLastLog, stzLogText) == 0))
db_set_ws(xsc->hContact, MODULE, DB_LASTLOG, stzLogText);
-
- char *blob = mir_utf8encodeT(stzLogText);
-
- DBEVENTINFO dbei = {0};
- dbei.cbSize = sizeof(dbei);
- dbei.cbBlob = (DWORD)strlen(blob) + 1;
- dbei.pBlob = (PBYTE) blob;
- dbei.eventType = EVENTTYPE_STATUSCHANGE;
- dbei.flags = DBEF_READ;
-
- dbei.flags |= DBEF_UTF;
-
- dbei.timestamp = (DWORD)time(NULL);
- dbei.szModule = xsc->szProto;
- HANDLE hDBEvent = db_event_add(xsc->hContact, &dbei);
- mir_free(blob);
-
- if (!opt.KeepInHistory) {
- DBEVENT *dbevent = (DBEVENT *)mir_alloc(sizeof(DBEVENT));
- dbevent->hContact = xsc->hContact;
- dbevent->hDBEvent = hDBEvent;
- eventList.insert(dbevent);
- }
- }
}
void LogChangeToFile(XSTATUSCHANGE *xsc)
|