From ab3d423b1dc514e9db61c170ca14bab49e5280cb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jan 2024 23:34:30 +0300 Subject: major atavism, PROTORECVEVENT, died with its own set of constants --- plugins/MirOTR/src/utils.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'plugins/MirOTR/src/utils.cpp') diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp index 76b4d03c96..af6c8eb928 100644 --- a/plugins/MirOTR/src/utils.cpp +++ b/plugins/MirOTR/src/utils.cpp @@ -215,11 +215,11 @@ void ShowMessageInline(const MCONTACT hContact, const wchar_t *msg) mir_snwprintf(buff, L"%s%s", _A2W(LANG_INLINE_PREFIX), msg); T2Utf utf(buff); - PROTORECVEVENT pre = { 0 }; - pre.timestamp = time(0); - pre.szMessage = utf; - pre.flags = PREF_BYPASS_OTR; - ProtoChainRecvMsg(hContact, &pre); + DB::EventInfo dbei; + dbei.timestamp = time(0); + dbei.pBlob = utf; + dbei.flags = PREF_BYPASS_OTR; + ProtoChainRecvMsg(hContact, dbei); } void ShowMessageInlineUtf(const MCONTACT hContact, const char *msg) @@ -227,11 +227,11 @@ void ShowMessageInlineUtf(const MCONTACT hContact, const char *msg) char buff[1024]; mir_snprintf(buff, "%s%s", LANG_INLINE_PREFIX, msg); - PROTORECVEVENT pre = { 0 }; - pre.timestamp = time(0); - pre.szMessage = buff; - pre.flags = PREF_BYPASS_OTR; - ProtoChainRecvMsg(hContact, &pre); + DB::EventInfo dbei; + dbei.timestamp = time(0); + dbei.pBlob = buff; + dbei.flags = PREF_BYPASS_OTR; + ProtoChainRecvMsg(hContact, dbei); } void ShowMessageUtf(const MCONTACT hContact, const char *msg) -- cgit v1.2.3