mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-25 07:19:39 -05:00
Fix crash when invalid token is used to connect to Twitch chat
This commit is contained in:
parent
be6bc48231
commit
1346c19bec
|
|
@ -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());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user