summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_miranda.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-27 18:53:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-27 18:53:50 +0000
commiteea8926b61889ea80c76f9fb6b5bf5d1afe6c6eb (patch)
treeb951626b03237050cdd72c501e8408ac1163e1d8 /plugins/Variables/src/parse_miranda.cpp
parentb1dc0111247ffd219585458edcf24c07c0b55ddf (diff)
old nasty perversion EVENTTYPE_STATUSCHANGE removed forever
git-svn-id: http://svn.miranda-ng.org/main/trunk@7396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/parse_miranda.cpp')
-rw-r--r--plugins/Variables/src/parse_miranda.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp
index 42a4b81402..d22b206534 100644
--- a/plugins/Variables/src/parse_miranda.cpp
+++ b/plugins/Variables/src/parse_miranda.cpp
@@ -489,14 +489,13 @@ static BOOL isValidDbEvent(DBEVENTINFO *dbe, int flags)
{
BOOL bEventType, bEventFlags;
- bEventType = ((dbe->eventType == EVENTTYPE_MESSAGE) && (flags&DBE_MESSAGE)) ||
- ((dbe->eventType == EVENTTYPE_URL) && (flags&DBE_URL)) ||
- ((dbe->eventType == EVENTTYPE_CONTACTS) && (flags&DBE_CONTACTS)) ||
- ((dbe->eventType == EVENTTYPE_ADDED) && (flags&DBE_ADDED)) ||
- ((dbe->eventType == EVENTTYPE_AUTHREQUEST) && (flags&DBE_AUTHREQUEST)) ||
- ((dbe->eventType == EVENTTYPE_FILE) && (flags&DBE_FILE)) ||
- ((dbe->eventType == EVENTTYPE_STATUSCHANGE) && (flags&DBE_STATUSCHANGE)) ||
- ((flags&DBE_OTHER));
+ bEventType = ((dbe->eventType == EVENTTYPE_MESSAGE) && (flags & DBE_MESSAGE)) ||
+ ((dbe->eventType == EVENTTYPE_URL) && (flags & DBE_URL)) ||
+ ((dbe->eventType == EVENTTYPE_CONTACTS) && (flags & DBE_CONTACTS)) ||
+ ((dbe->eventType == EVENTTYPE_ADDED) && (flags & DBE_ADDED)) ||
+ ((dbe->eventType == EVENTTYPE_AUTHREQUEST) && (flags & DBE_AUTHREQUEST)) ||
+ ((dbe->eventType == EVENTTYPE_FILE) && (flags & DBE_FILE)) ||
+ ((flags & DBE_OTHER));
bEventFlags = (dbe->flags&DBEF_SENT)?(flags&DBE_SENT):(flags&DBE_RCVD);
bEventFlags = (bEventFlags && ((dbe->flags&DBEF_READ)?(flags&DBE_READ):(flags&DBE_UNREAD)));