diff options
-rw-r--r-- | protocols/Discord/src/options.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/server.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/stdafx.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Discord/src/options.cpp b/protocols/Discord/src/options.cpp index b11f0883f9..8577399926 100644 --- a/protocols/Discord/src/options.cpp +++ b/protocols/Discord/src/options.cpp @@ -105,6 +105,8 @@ void CDiscordProto::OnReceiveLogout(MHttpResponse *, AsyncHttpRequest *pReq) m_szAccessToken = 0;
ShutdownSession();
+ CallService(MS_KS_ENABLEPROTOCOL, FALSE, LPARAM(m_szModuleName));
+
auto *pDlg = (CDiscardAccountOptions *)pReq->pUserInfo;
pDlg->onLogout();
}
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index 728a56da7d..fc406e600c 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -169,6 +169,8 @@ void CDiscordProto::OnReceiveMyInfo(MHttpResponse *pReply, AsyncHttpRequest*) m_ownId = id;
m_szCookie = pReply->GetCookies();
+ CallService(MS_KS_ENABLEPROTOCOL, FALSE, LPARAM(m_szModuleName));
+
// launch gateway thread
if (m_szGateway.IsEmpty())
Push(new AsyncHttpRequest(this, REQUEST_GET, "/gateway", &CDiscordProto::OnReceiveGateway));
diff --git a/protocols/Discord/src/stdafx.h b/protocols/Discord/src/stdafx.h index 6e241a4dc6..7bfd1425e9 100644 --- a/protocols/Discord/src/stdafx.h +++ b/protocols/Discord/src/stdafx.h @@ -44,6 +44,7 @@ #include <m_protoint.h>
#include <m_skin.h>
#include <m_srmm_int.h>
+#include <m_statusplugins.h>
#include <m_userinfo.h>
#include <m_utils.h>
#include <m_voice.h>
|