From 010952c5c2dde278a024f6876e8189b949ea5dcf Mon Sep 17 00:00:00 2001 From: George Hazan <george.hazan@gmail.com> Date: Fri, 19 Jan 2024 15:44:57 +0300 Subject: the ancient atavism extincted: PROTORECVFILE structure with its own set of flags --- protocols/IRCG/src/commandmonitor.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp index 917147ea89..f36ec8d236 100644 --- a/protocols/IRCG/src/commandmonitor.cpp +++ b/protocols/IRCG/src/commandmonitor.cpp @@ -1148,15 +1148,9 @@ bool CIrcProto::IsCTCP(const CIrcMessage *pmsg) setWString(hContact, "User", pmsg->prefix.sUser); setWString(hContact, "Host", pmsg->prefix.sHost); - const wchar_t* tszTemp = sFile; - - PROTORECVFILE pre = {}; - pre.dwFlags = PRFF_UNICODE; - pre.timestamp = (uint32_t)time(0); - pre.fileCount = 1; - pre.files.w = &tszTemp; - pre.pUserInfo = di; - ProtoChainRecvFile(hContact, &pre); + DB::EventInfo dbei; + dbei.timestamp = (uint32_t)time(0); + ProtoChainRecvFile(hContact, DB::FILE_BLOB(di, T2Utf(sFile)), dbei); } } } -- cgit v1.2.3