summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/dbevent.cpp
blob: 66921acadcc27eb1ef692336b260689ad2ded71a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "commonheaders.h"

void HistoryLog(MCONTACT hContact, LPCSTR szText)
{
	DBEVENTINFO dbei = {};
	dbei.szModule = Proto_GetBaseAccountName(hContact);
	dbei.flags = DBEF_SENT | DBEF_READ;
	dbei.timestamp = time(0);
	dbei.eventType = EVENTTYPE_MESSAGE;
	dbei.cbBlob = (int)mir_strlen(szText) + 1;
	dbei.pBlob = (char *)szText;
	db_event_add(0, &dbei);
}