diff options
author | George Hazan <ghazan@miranda.im> | 2022-07-24 18:39:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-07-24 18:39:15 +0300 |
commit | c2e3471bcd79fdafc21d03bd5ee7c5572df263f8 (patch) | |
tree | 445c3f47556ae317f3a9528bab0b9bb383c4364f /protocols/JabberG | |
parent | 34db4cfe0976fa12525fd2df18a0e04113e502cc (diff) |
fixes #3122 (Миранда некорректно отображает время в журнале)
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 69cc778e26..839c019d94 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -246,15 +246,12 @@ void CJabberProto::GcLogUpdateMemberStatus(JABBER_LIST_ITEM *item, const char *r myNick = JabberNickFromJID(m_szJabberJID);
GCEVENT gce = { m_szModuleName, item->jid, 0 };
- gce.dwFlags = GCEF_UTF8;
+ gce.dwFlags = GCEF_UTF8 | ((item->bChatLogging) ? GCEF_ADDTOLOG : 0);
gce.pszNick.a = nick;
gce.pszUID.a = resource;
gce.pszUserInfo.a = jid;
gce.pszText.a = szReason;
- if (item->bChatLogging) {
- gce.dwFlags |= GCEF_ADDTOLOG;
- gce.time = time(0);
- }
+ gce.time = time(0);
switch (gce.iType = action) {
case GC_EVENT_PART: break;
|