diff options
-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
|