From 86cfb4561560f213ba7dd3ebdc7e033b4cd87941 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 Oct 2014 17:02:21 +0000 Subject: the same account not to be used twice during import git-svn-id: http://svn.miranda-ng.org/main/trunk@10799 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/import.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/Import/src/import.cpp') diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index dca01e591c..779e9c8423 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -205,6 +205,11 @@ static PROTOACCOUNT* FindMyAccount(const char *szProto, const char *szBaseProto) PROTOACCOUNT *pProto = NULL; for (int i = 0; i < destProtoCount; i++) { PROTOACCOUNT *pa = destAccs[i]; + // already used? skip + if (arAccountMap.find((AccountMap*)&pa->szProtoName)) + continue; + + // different base protocotol type -> skip if (lstrcmpA(pa->szProtoName, szBaseProto)) continue; -- cgit v1.2.3