From 11354effc08a8d1b1b0fc95b5c473256f33c8ec3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Dec 2014 17:52:29 +0000 Subject: - MS_PROTO_ISPROTOCOLLOADED now switched back to protocols instead of accounts; - calls of MS_PROTO_ISPROTOCOLLOADED replaced with ProtoGetAccount() wherever possible git-svn-id: http://svn.miranda-ng.org/main/trunk@11558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/import.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/Import/src/import.cpp') diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index a7a1b89984..fc479769b2 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -482,6 +482,11 @@ bool ImportAccounts() if (p.pa != NULL || p.szBaseProto == NULL || !mir_strcmp(p.szSrcAcc, META_PROTO)) continue; + if (!IsProtocolLoaded(p.szBaseProto)) { + AddMessage(LPGENT("Protocol %S is not loaded, skipping account %s creation"), p.szBaseProto, p.tszSrcName); + continue; + } + ACC_CREATE newacc; newacc.pszBaseProto = p.szBaseProto; newacc.pszInternal = NULL; @@ -781,7 +786,7 @@ static MCONTACT ImportContact(MCONTACT hSrc) return NULL; } - if (!IsProtocolLoaded(pda->pa->szModuleName)) { + if (!ProtoGetAccount(pda->pa->szModuleName)) { AddMessage(LPGENT("Skipping contact, %S not installed."), cc->szProto); return NULL; } -- cgit v1.2.3