summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-30 13:55:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-30 13:55:32 +0000
commit5af8f1dae14233cb203d78da7b5b1a286272cc6a (patch)
tree2cc9e3bcc330229df4aa94805f50a0bf32e098b2 /plugins/Import/src
parent918af1e0ebe3c00f9b7ac15596931463bc74e54a (diff)
fix for the wrong number of events after import
git-svn-id: http://svn.miranda-ng.org/main/trunk@12550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/import.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 185760972a..d3b70833e7 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -924,35 +924,35 @@ static void ImportHistory(MCONTACT hContact, PROTOACCOUNT **protocol, int protoC
// custom filtering
if (!bSkipThis) {
- BOOL sent = (dbei.flags & DBEF_SENT);
+ bool bIsSent = (dbei.flags & DBEF_SENT) != 0;
if (dbei.timestamp < (DWORD)dwSinceDate)
- bSkipThis = 1;
+ bSkipThis = true;
if (!bSkipThis) {
if (hDst) {
bSkipThis = 1;
switch (dbei.eventType) {
case EVENTTYPE_MESSAGE:
- if ((sent ? IOPT_MSGSENT : IOPT_MSGRECV) & nImportOptions)
- bSkipThis = 0;
+ if ((bIsSent ? IOPT_MSGSENT : IOPT_MSGRECV) & nImportOptions)
+ bSkipThis = false;
break;
case EVENTTYPE_FILE:
- if ((sent ? IOPT_FILESENT : IOPT_FILERECV) & nImportOptions)
- bSkipThis = 0;
+ if ((bIsSent ? IOPT_FILESENT : IOPT_FILERECV) & nImportOptions)
+ bSkipThis = false;
break;
case EVENTTYPE_URL:
- if ((sent ? IOPT_URLSENT : IOPT_URLRECV) & nImportOptions)
- bSkipThis = 0;
+ if ((bIsSent ? IOPT_URLSENT : IOPT_URLRECV) & nImportOptions)
+ bSkipThis = false;
break;
default:
- if ((sent ? IOPT_OTHERSENT : IOPT_OTHERRECV) & nImportOptions)
- bSkipThis = 0;
+ if ((bIsSent ? IOPT_OTHERSENT : IOPT_OTHERRECV) & nImportOptions)
+ bSkipThis = false;
break;
}
}
else if (!(nImportOptions & IOPT_SYSTEM))
- bSkipThis = 1;
+ bSkipThis = true;
}
if (bSkipThis)