diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-17 21:08:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-17 21:08:47 +0000 |
commit | 68b243ce500d8bcd1c1fc3d84ab89960f2e75f2e (patch) | |
tree | 250748681c10bc40f8920e3626242505a8493c2c /plugins | |
parent | 615fb76aa67d82520bf8bd65338d5ec5bafd9f01 (diff) |
"people are dumb" (c)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11496 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Import/src/import.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index 61c01a4c7b..a7a1b89984 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -487,8 +487,8 @@ bool ImportAccounts() newacc.pszInternal = NULL;
newacc.ptszAccountName = p.tszSrcName;
- PROTOACCOUNT *pa = ProtoCreateAccount(&newacc);
- if (pa == NULL) {
+ p.pa = ProtoCreateAccount(&newacc);
+ if (p.pa == NULL) {
AddMessage(LPGENT("Unable to create an account %s of protocol %S"), p.tszSrcName, p.szBaseProto);
return false;
}
@@ -496,23 +496,23 @@ bool ImportAccounts() char szSetting[100];
itoa(400 + p.iSrcIndex, szSetting, 10);
int iVal = myGetD(NULL, "Protocols", szSetting, 1);
- itoa(400 + pa->iOrder, szSetting, 10);
+ itoa(400 + p.pa->iOrder, szSetting, 10);
db_set_dw(NULL, "Protocols", szSetting, iVal);
- pa->bIsVisible = iVal != 0;
+ p.pa->bIsVisible = iVal != 0;
itoa(600 + p.iSrcIndex, szSetting, 10);
iVal = myGetD(NULL, "Protocols", szSetting, 1);
- itoa(600 + pa->iOrder, szSetting, 10);
+ itoa(600 + p.pa->iOrder, szSetting, 10);
db_set_dw(NULL, "Protocols", szSetting, iVal);
- pa->bIsEnabled = iVal != 0;
+ p.pa->bIsEnabled = iVal != 0;
if (p.tszSrcName == NULL) {
- pa->tszAccountName = mir_a2t(pa->szModuleName);
- itoa(800 + pa->iOrder, szSetting, 10);
- db_set_ts(NULL, "Protocols", szSetting, pa->tszAccountName);
+ p.pa->tszAccountName = mir_a2t(p.pa->szModuleName);
+ itoa(800 + p.pa->iOrder, szSetting, 10);
+ db_set_ts(NULL, "Protocols", szSetting, p.pa->tszAccountName);
}
- CopySettings(NULL, p.szSrcAcc, NULL, pa->szModuleName);
+ CopySettings(NULL, p.szSrcAcc, NULL, p.pa->szModuleName);
}
return true;
}
|