From 1346c19becefb84887d602a8d670d32bd152c7c6 Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:20:15 +0200 Subject: [PATCH] Fix crash when invalid token is used to connect to Twitch chat --- plugins/twitch/chat-connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/twitch/chat-connection.cpp b/plugins/twitch/chat-connection.cpp index b97315f1..4c5f487d 100644 --- a/plugins/twitch/chat-connection.cpp +++ b/plugins/twitch/chat-connection.cpp @@ -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());