diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-23 00:09:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-23 00:09:47 +0300 |
commit | a44a74bcd4d4515bffe20bc6ff20b270bc200693 (patch) | |
tree | ba6cde2d302a06307be555f1879712689aa8226c /plugins/Import/src/import.cpp | |
parent | 9baf3a90829c501f0a134d3ef1864e08e134e616 (diff) |
Import plugin adapted for Proto_CreateAccount
Diffstat (limited to 'plugins/Import/src/import.cpp')
-rw-r--r-- | plugins/Import/src/import.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<char> &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;
|