diff options
author | aunsane <aunsane@gmail.com> | 2017-03-16 00:52:31 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-16 00:52:31 +0300 |
commit | 69c00c5b8999f66f27475342c78cc4488959e8bb (patch) | |
tree | 89046c469bd8337e2c191d348d47bceb69a49ee0 /protocols/Slack/src/slack_accounts.cpp | |
parent | c84b27ebb4eaa5327c601f0b504249bf061ef3b5 (diff) |
Slack: some improvements
Diffstat (limited to 'protocols/Slack/src/slack_accounts.cpp')
-rw-r--r-- | protocols/Slack/src/slack_accounts.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Slack/src/slack_accounts.cpp b/protocols/Slack/src/slack_accounts.cpp index 50640ae37a..47ebdecdc6 100644 --- a/protocols/Slack/src/slack_accounts.cpp +++ b/protocols/Slack/src/slack_accounts.cpp @@ -37,6 +37,14 @@ int CSlackProto::OnAccountLoaded(WPARAM, LPARAM) return 0; } +int CSlackProto::OnAccountDeleted(WPARAM, LPARAM) +{ + ptrA token(getStringA("TokenSecret")); + SendRequest(new AuthRevokeRequest(token)); + + return 0; +}; + INT_PTR CSlackProto::OnAccountManagerInit(WPARAM, LPARAM) { return NULL;// (INT_PTR)(CSlackOptionsMain::CreateAccountManagerPage(this, (HWND)lParam))->GetHwnd(); |