summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/slack_accounts.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-03-16 00:52:31 +0300
committeraunsane <aunsane@gmail.com>2017-03-16 00:52:31 +0300
commit69c00c5b8999f66f27475342c78cc4488959e8bb (patch)
tree89046c469bd8337e2c191d348d47bceb69a49ee0 /protocols/Slack/src/slack_accounts.cpp
parentc84b27ebb4eaa5327c601f0b504249bf061ef3b5 (diff)
Slack: some improvements
Diffstat (limited to 'protocols/Slack/src/slack_accounts.cpp')
-rw-r--r--protocols/Slack/src/slack_accounts.cpp8
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();