From a44a74bcd4d4515bffe20bc6ff20b270bc200693 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Mar 2018 00:09:47 +0300 Subject: Import plugin adapted for Proto_CreateAccount --- plugins/Import/src/import.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/Import/src/import.cpp') diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index 5faff95ca8..b727d7f7d9 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -468,12 +468,7 @@ bool ImportAccounts(OBJLIST &arSkippedModules) } if (p->pa == nullptr) { - ACC_CREATE newacc; - newacc.pszBaseProto = p->szBaseProto; - newacc.pszInternal = nullptr; - newacc.ptszAccountName = p->tszSrcName; - - p->pa = ProtoCreateAccount(&newacc); + p->pa = Proto_CreateAccount(nullptr, p->szBaseProto, p->tszSrcName); if (p->pa == nullptr) { AddMessage(LPGENW("Unable to create an account %s of protocol %S"), p->tszSrcName, p->szBaseProto); continue; -- cgit v1.2.3