From eea8926b61889ea80c76f9fb6b5bf5d1afe6c6eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Dec 2013 18:53:50 +0000 Subject: old nasty perversion EVENTTYPE_STATUSCHANGE removed forever git-svn-id: http://svn.miranda-ng.org/main/trunk@7396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewXstatusNotify/src/xstatus.cpp | 26 +------------------------- plugins/NewXstatusNotify/src/xstatus.h | 1 - 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'plugins/NewXstatusNotify/src') 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) diff --git a/plugins/NewXstatusNotify/src/xstatus.h b/plugins/NewXstatusNotify/src/xstatus.h index dd2fed81c5..5468d2c5ff 100644 --- a/plugins/NewXstatusNotify/src/xstatus.h +++ b/plugins/NewXstatusNotify/src/xstatus.h @@ -43,7 +43,6 @@ #define XSTATUS_SOUND_REMOVED "XStatusRemove" // tabSRMM stuff (logging to message window) -#define EVENTTYPE_STATUSCHANGE 25368 #define MS_MSG_MOD_MESSAGEDIALOGOPENED "SRMsg_MOD/MessageDialogOpened" // Default templates -- cgit v1.2.3