From e96132b4d5344d2d58d247906bcaefccfb9d5253 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Dec 2023 13:34:45 +0300 Subject: DBEVENTINFO::hContact to be returned inside an event, no need to call db_event_getContact() just after db_event_get() --- protocols/IRCG/src/commandmonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp index daccc47cb9..5e8fff44fb 100644 --- a/protocols/IRCG/src/commandmonitor.cpp +++ b/protocols/IRCG/src/commandmonitor.cpp @@ -228,7 +228,7 @@ int CIrcProto::AddOutgoingMessageToDB(MCONTACT hContact, const wchar_t *msg) dbei.eventType = EVENTTYPE_MESSAGE; dbei.timestamp = (uint32_t)time(0); dbei.flags = DBEF_SENT | DBEF_UTF; - dbei.pBlob = (uint8_t*)mir_utf8encodeW(S); + dbei.pBlob = mir_utf8encodeW(S); dbei.cbBlob = (uint32_t)mir_strlen((char*)dbei.pBlob) + 1; db_event_add(hContact, &dbei); mir_free(dbei.pBlob); -- cgit v1.2.3