diff options
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 |