fix whispers crashing if they contained twitch badges

This commit is contained in:
Rasmus Karlsson 2018-10-02 19:27:08 +02:00
parent c872db3d9f
commit 39a8e8193c

View file

@ -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");