From 39a8e8193c3bee320e11e6c57fdc6927b3f3558e Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Tue, 2 Oct 2018 19:27:08 +0200 Subject: [PATCH] fix whispers crashing if they contained twitch badges --- src/providers/twitch/TwitchMessageBuilder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index 93a54301f..7589d54d0 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -872,6 +872,10 @@ Outcome TwitchMessageBuilder::tryAppendEmote(const EmoteName &name) // fourtf: this is ugly void TwitchMessageBuilder::appendTwitchBadges() { + if (this->twitchChannel == nullptr) { + return; + } + auto app = getApp(); auto iterator = this->tags.find("badges");