diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-15 12:31:34 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-15 12:31:34 +0300 |
commit | ad952090c27086537f8c407a228e8d609a22b0fc (patch) | |
tree | 8947fe09598c0e66ae6d4a85383d88f30d082a64 /protocols/Discord/src/server.cpp | |
parent | 55e849420c53112df1d49d490557d6175532c260 (diff) |
code cleaning
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r-- | protocols/Discord/src/server.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index 75167a7a60..7bc887edef 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -193,14 +193,6 @@ void CDiscordProto::OnReceiveGateway(MHttpResponse *pReply, AsyncHttpRequest*) }
/////////////////////////////////////////////////////////////////////////////////////////
-// logs a session out
-
-void CDiscordProto::OnReceiveLogout(MHttpResponse *, AsyncHttpRequest *)
-{
- delSetting("AccessToken");
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
void CDiscordProto::SetServerStatus(int iStatus)
{
@@ -284,7 +276,7 @@ void CDiscordProto::OnReceiveToken(MHttpResponse *pReply, AsyncHttpRequest*) if (auto &token = data["token"]) {
CMStringA szToken = token.as_mstring();
m_szAccessToken = szToken.Detach();
- setString("AccessToken", m_szAccessToken);
+ setString(DB_KEY_TOKEN, m_szAccessToken);
RetrieveMyInfo();
return;
}
|