summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-09-29 12:45:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-09-29 12:45:17 +0000
commit6f20d680f5f175ca2b4669ea7fc27fa34ca7dfd3 (patch)
tree21b0335133c4cf285571b35189aadbdb1aff6056 /plugins
parent30fb3fb00fabc8d517a6e46f6f6daa5895c4b4f4 (diff)
Import: all auth messages to be suppressed
git-svn-id: http://svn.miranda-ng.org/main/trunk@10625 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Import/src/import.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 403cf703ec..d0bb4d6a2f 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -255,16 +255,16 @@ void ImportAccounts()
continue;
}
- itoa(800+i, szSetting, 10);
+ itoa(800 + i, szSetting, 10);
ptrT tszAccountName(myGetWs(NULL, "Protocols", szSetting));
if (tszAccountName == NULL)
tszAccountName = mir_a2t(szProto);
-
+
ACC_CREATE newacc;
newacc.pszBaseProto = szBaseProto;
newacc.pszInternal = NULL;
newacc.ptszAccountName = tszAccountName;
-
+
pa = ProtoCreateAccount(&newacc);
if (pa == NULL) {
arAccountMap.insert(new AccountMap(szProto, NULL));
@@ -555,12 +555,12 @@ static void ImportHistory(MCONTACT hContact, PROTOACCOUNT **protocol, int protoC
// check protocols during system history import
if (hDst == NULL) {
skipAll = 1;
- for (int i = 0; i < protoCount; i++)
+ for (int i = 0; i < protoCount; i++) {
if (!strcmp(dbei.szModule, protocol[i]->szModuleName)) {
skipAll = 0;
break;
}
-
+ }
skip = skipAll;
}
@@ -604,6 +604,10 @@ static void ImportHistory(MCONTACT hContact, PROTOACCOUNT **protocol, int protoC
if (!skip) {
// Check for duplicate entries
if (!IsDuplicateEvent(hDst, dbei)) {
+ // no need to display all these dialogs again
+ if (dbei.eventType == EVENTTYPE_AUTHREQUEST || dbei.eventType == EVENTTYPE_ADDED)
+ dbei.flags |= DBEF_READ;
+
// Add dbevent
if (dstDb->AddEvent(hDst, &dbei) != NULL)
nMessagesCount++;