diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-26 23:34:30 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-26 23:34:30 +0300 |
commit | ab3d423b1dc514e9db61c170ca14bab49e5280cb (patch) | |
tree | f8c76c7b8cb5ad8804aff7222960126e9180d66c /protocols/IRCG/src | |
parent | 395ecbc7e8f02c0ea659a598e5f9bab8995f3451 (diff) |
major atavism, PROTORECVEVENT, died with its own set of constants
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r-- | protocols/IRCG/src/commandmonitor.cpp | 10 | ||||
-rw-r--r-- | protocols/IRCG/src/irclib.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp index f36ec8d236..28350171b2 100644 --- a/protocols/IRCG/src/commandmonitor.cpp +++ b/protocols/IRCG/src/commandmonitor.cpp @@ -697,14 +697,14 @@ bool CIrcProto::OnIrc_PRIVMSG(const CIrcMessage *pmsg) }
MCONTACT hContact = CList_AddContact(&user, false, true);
+ T2Utf utf(mess);
- PROTORECVEVENT pre = {};
- pre.timestamp = (uint32_t)time(0);
- pre.szMessage = mir_utf8encodeW(mess);
+ DB::EventInfo dbei;
+ dbei.timestamp = (uint32_t)time(0);
+ dbei.pBlob = utf;
setWString(hContact, "User", pmsg->prefix.sUser);
setWString(hContact, "Host", pmsg->prefix.sHost);
- ProtoChainRecvMsg(hContact, &pre);
- mir_free(pre.szMessage);
+ ProtoChainRecvMsg(hContact, dbei);
return true;
}
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp index 4b6737f153..2861324bb0 100644 --- a/protocols/IRCG/src/irclib.cpp +++ b/protocols/IRCG/src/irclib.cpp @@ -1274,10 +1274,10 @@ void CDccSession::DoChatReceive() if (*pStart) { // send it off to some messaging module - PROTORECVEVENT pre = {}; - pre.timestamp = (uint32_t)time(0); - pre.szMessage = pStart; - ProtoChainRecvMsg(di->hContact, &pre); + DB::EventInfo dbei; + dbei.timestamp = (uint32_t)time(0); + dbei.pBlob = pStart; + ProtoChainRecvMsg(di->hContact, dbei); } cbInBuf -= pEnd - pStart; |