Fix crash when invalid token is used to connect to Twitch chat

This commit is contained in:
WarmUpTill 2025-06-03 20:20:15 +02:00 committed by WarmUpTill
parent be6bc48231
commit 1346c19bec

View File

@ -501,6 +501,7 @@ void TwitchChatConnection::Authenticate()
if (!pass.has_value()) {
blog(LOG_INFO,
"Joining Twitch chat failed due to invalid token!");
return;
}
Send("PASS oauth:" + *pass);
Send("NICK " + _token.GetName());