From 6c10f6b8b8564337fb5fb88d31f2403ec2ccce9e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Jun 2022 18:59:31 +0300 Subject: fixes #3108 (NewEventNotify shows message popup even if antispam is enabled) --- plugins/NewEventNotify/src/main.cpp | 4 ++-- plugins/NewEventNotify/src/options.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewEventNotify') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 60692ec06b..d0ae746562 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -78,11 +78,11 @@ int HookedNewEvent(WPARAM hContact, LPARAM hDbEvent) if (pei && pei->flags & DETF_NONOTIFY) return 0; - //if event was allready read don't show it + // if event was allready read don't show it if (g_plugin.bReadCheck && (dbe.flags & DBEF_READ)) return 0; - //is it an event sent by the user? -> don't show + // is it an event sent by the user? -> don't show if (dbe.flags & DBEF_SENT) { // JK, only message event, do not influence others auto *pdata = PU_GetByContact(hContact, EVENTTYPE_MESSAGE); diff --git a/plugins/NewEventNotify/src/options.cpp b/plugins/NewEventNotify/src/options.cpp index 8820ec597e..43e4d2d950 100644 --- a/plugins/NewEventNotify/src/options.cpp +++ b/plugins/NewEventNotify/src/options.cpp @@ -65,7 +65,7 @@ void CMPlugin::OptionsRead(void) bShowON = getBool(OPT_SHOW_ON, true); bHideSend = getBool(OPT_HIDESEND, true); bNoRSS = getBool(OPT_NORSS, false); - bReadCheck = getBool(OPT_READCHECK, false); + bReadCheck = getBool(OPT_READCHECK, true); } void CMPlugin::OptionsWrite(void) -- cgit v1.2.3