From acd9edbd6413e9ff25378bd4e2cbc515d2a620f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Feb 2017 20:21:39 +0300 Subject: GCEF_SILENT - the special flag to suppress any event logging --- include/m_chat.h | 3 ++- src/mir_app/src/chat_svc.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/m_chat.h b/include/m_chat.h index 02c9dee93a..0644009ede 100644 --- a/include/m_chat.h +++ b/include/m_chat.h @@ -357,7 +357,8 @@ struct GCDEST // The GCEVENT structure -#define GCEF_ADDTOLOG 0x0001 +#define GCEF_ADDTOLOG 0x0001 // force adding to log +#define GCEF_SILENT 0x0002 // never add to log #define GCEF_NOTNOTIFY 0x0004 struct GCEVENT diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index c5ca2b9255..a3412dadd5 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -540,6 +540,9 @@ EXTERN_C MIR_APP_DLL(int) Chat_Event(GCEVENT *gce) // add to log if (pWnd) { + if (gce->dwFlags & GCEF_SILENT) + return 0; + SESSION_INFO *si = chatApi.SM_FindSession(pWnd, pMod); // fix for IRC's old style mode notifications. Should not affect any other protocol -- cgit v1.2.3