diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-05-21 14:18:33 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-05-21 14:18:33 +0000 |
commit | ef451a30cfa4fe0a5d90c9313313a2be910c0d15 (patch) | |
tree | 60e5ac1c57f51bbe82a96de5d9530634c3c33857 /plugins/Spamotron/src/utils.cpp | |
parent | 82c79bf83d1fd28a8d09cab42a4a7df2c94b11cc (diff) |
minor adaptions for Miranda NG
git-svn-id: http://svn.miranda-ng.org/main/trunk@4774 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Spamotron/src/utils.cpp')
-rw-r--r-- | plugins/Spamotron/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Spamotron/src/utils.cpp b/plugins/Spamotron/src/utils.cpp index ca31eda236..5f930e47bd 100644 --- a/plugins/Spamotron/src/utils.cpp +++ b/plugins/Spamotron/src/utils.cpp @@ -480,7 +480,7 @@ int LogToSystemHistory(char *message, char *origmessage) dbei.cbBlob = (DWORD)strlen(msg)+1;
dbei.eventType = EVENTTYPE_MESSAGE;
dbei.flags = DBEF_READ;
- CallService(MS_DB_EVENT_ADD, (WPARAM)NULL, (LPARAM)&dbei);
+ db_event_add(NULL, &dbei);
return 0;
}
@@ -488,7 +488,6 @@ void MarkUnread(HANDLE hContact) {
// We're not actually marking anything. We just pushing saved events to the database from a temporary location
DBVARIANT _dbv = {0};
- DBEVENTINFO _dbei;
PBYTE pos;
if (hContact == NULL)
@@ -497,6 +496,7 @@ void MarkUnread(HANDLE hContact) if (db_get(hContact, PLUGIN_NAME, "LastMsgEvents", &_dbv) == 0) {
pos = _dbv.pbVal;
while (pos - _dbv.pbVal < _dbv.cpbVal) {
+ DBEVENTINFO _dbei;
ZeroMemory(&_dbei, sizeof(_dbei));
_dbei.cbSize = sizeof(_dbei);
@@ -513,7 +513,7 @@ void MarkUnread(HANDLE hContact) memcpy(_dbei.pBlob, pos, _dbei.cbBlob);
pos += _dbei.cbBlob;
- CallService(MS_DB_EVENT_ADD, (WPARAM)hContact, (LPARAM)&_dbei);
+ db_event_add(hContact,&_dbei);
}
db_free(&_dbv);
db_unset(hContact, PLUGIN_NAME, "LastMsgEvents");
|