From c2e3471bcd79fdafc21d03bd5ee7c5572df263f8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Jul 2022 18:39:15 +0300 Subject: =?UTF-8?q?fixes=20#3122=20(=D0=9C=D0=B8=D1=80=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=B2=20=D0=B6?= =?UTF-8?q?=D1=83=D1=80=D0=BD=D0=B0=D0=BB=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/JabberG/src/jabber_chat.cpp | 7 ++----- 1 file 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; -- cgit v1.2.3