diff options
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/gateway.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index 480cf6c012..ffd66f6d0a 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -356,6 +356,11 @@ void CDiscordProto::GatewaySendHeartbeat() void CDiscordProto::GatewaySendIdentify() { + if (m_szAccessToken == nullptr) { + ConnectionFailed(LOGINERR_WRONGPASSWORD); + return; + } + wchar_t wszOs[256]; GetOSDisplayString(wszOs, _countof(wszOs)); |