summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/New_GPG/src/messages.cpp')
-rwxr-xr-xplugins/New_GPG/src/messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/New_GPG/src/messages.cpp b/plugins/New_GPG/src/messages.cpp
index f446f5907e..f10efdd76a 100755
--- a/plugins/New_GPG/src/messages.cpp
+++ b/plugins/New_GPG/src/messages.cpp
@@ -689,8 +689,8 @@ int HookSendMsg(WPARAM w, LPARAM l)
if (!l)
return 0;
- DBEVENTINFO * dbei = (DBEVENTINFO*)l;
- if (dbei->eventType != EVENTTYPE_MESSAGE)
+ DBEVENTINFO *dbei = (DBEVENTINFO*)l;
+ if (dbei->eventType != EVENTTYPE_MESSAGE || (dbei->flags & DBEF_READ))
return 0;
MCONTACT hContact = (MCONTACT)w;