diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-22 18:59:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-22 18:59:31 +0300 |
commit | 6c10f6b8b8564337fb5fb88d31f2403ec2ccce9e (patch) | |
tree | 254f2534c1f8e7f7dc928461160e5b9519fd3a8f /plugins/StopSpamPlus | |
parent | da5eb4e6c9725aca51f8de23a5cb89ee5b6b3087 (diff) |
fixes #3108 (NewEventNotify shows message popup even if antispam is enabled)
Diffstat (limited to 'plugins/StopSpamPlus')
-rw-r--r-- | plugins/StopSpamPlus/src/events.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/StopSpamPlus/src/events.cpp b/plugins/StopSpamPlus/src/events.cpp index 10f69769ac..8985820c07 100644 --- a/plugins/StopSpamPlus/src/events.cpp +++ b/plugins/StopSpamPlus/src/events.cpp @@ -145,12 +145,9 @@ int OnDbEventFilterAdd(WPARAM w, LPARAM l) Contact_RemoveFromList(hContact);
Contact_Hide(hContact);
- // save message from contact
+ // mark message as read and allow to insert it into the history
dbei->flags |= DBEF_READ;
- db_event_add(hContact, dbei);
-
- // reject processing of the event
- return 1;
+ return 0;
}
int OnDbContactSettingchanged(WPARAM hContact, LPARAM l)
|