diff options
Diffstat (limited to 'plugins/StopSpamMod/src/utilities.cpp')
-rwxr-xr-x | plugins/StopSpamMod/src/utilities.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp index 30bdf639b4..0ce304e59f 100755 --- a/plugins/StopSpamMod/src/utilities.cpp +++ b/plugins/StopSpamMod/src/utilities.cpp @@ -475,15 +475,14 @@ void CleanThread() void HistoryLog(HANDLE hContact, char *data, int event_type, int flags) { - DBEVENTINFO Event = {0}; - Event.cbSize = sizeof(Event); + DBEVENTINFO Event = { sizeof(Event) }; Event.szModule = pluginName; Event.eventType = event_type; Event.flags = flags | DBEF_UTF; Event.timestamp = (DWORD)time(NULL); Event.cbBlob = strlen(data)+1; Event.pBlob = (PBYTE)_strdup(data); - CallService(MS_DB_EVENT_ADD, (WPARAM)(HANDLE)hContact,(LPARAM)&Event); + db_event_add(hContact, &Event); } void HistoryLogFunc(HANDLE hContact, std::string message) |