mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-10-02 14:29:52 -05:00
Fix crash when invalid token is used to connect to Twitch chat
This commit is contained in:
@@ -501,6 +501,7 @@ void TwitchChatConnection::Authenticate()
|
|||||||
if (!pass.has_value()) {
|
if (!pass.has_value()) {
|
||||||
blog(LOG_INFO,
|
blog(LOG_INFO,
|
||||||
"Joining Twitch chat failed due to invalid token!");
|
"Joining Twitch chat failed due to invalid token!");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
Send("PASS oauth:" + *pass);
|
Send("PASS oauth:" + *pass);
|
||||||
Send("NICK " + _token.GetName());
|
Send("NICK " + _token.GetName());
|
||||||
|
|||||||
Reference in New Issue
Block a user