diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-10-04 02:12:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-10-04 02:12:42 +0000 |
commit | 6a3c12bfd2a1829ac537a3b615d42c1e956a0586 (patch) | |
tree | 79d2fa3338a7a8e2040481c0e11b82905efca2b5 /protocols/Tox/src/tox_accounts.cpp | |
parent | 928158d25b533037df6ba4a1b1daedeefb05bbbb (diff) |
Tox:
- fixed network setting loading
- code reordering
git-svn-id: http://svn.miranda-ng.org/main/trunk@10680 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_accounts.cpp')
-rw-r--r-- | protocols/Tox/src/tox_accounts.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index 091923ccdf..875996b9a8 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -32,26 +32,4 @@ int CToxProto::UninitAccount(CToxProto* ppro) delete ppro;
return 0;
-}
-
-int CToxProto::OnAccountListChanged(WPARAM wParam, LPARAM lParam)
-{
- PROTOACCOUNT* account = (PROTOACCOUNT*)lParam;
-
- if (!strcmp(account->szModuleName, m_szModuleName))
- {
- switch (wParam)
- {
- case PRAC_CHANGED:
- std::tstring newPath = GetToxProfilePath();
- TCHAR oldPath[MAX_PATH];
- mir_sntprintf(oldPath, MAX_PATH, _T("%s\\%s.tox"), VARST(_T("%miranda_userdata%")), accountName);
- MoveFileEx(oldPath, newPath.c_str(), MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED);
- mir_free(accountName);
- accountName = mir_tstrdup(m_tszUserName);
- break;
- }
- }
-
- return 0;
}
\ No newline at end of file |