diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-15 20:21:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-15 20:21:39 +0300 |
commit | acd9edbd6413e9ff25378bd4e2cbc515d2a620f7 (patch) | |
tree | 24dda4e9ba2bf72c130d5ee42a7a44af16982c61 | |
parent | a3c95404f5e1dff8c0ba4634f86522ee4c6ad2cc (diff) |
GCEF_SILENT - the special flag to suppress any event logging
-rw-r--r-- | include/m_chat.h | 3 | ||||
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 3 |
2 files changed, 5 insertions, 1 deletions
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
|