Clean up Twitch badge appending code

This commit is contained in:
Rasmus Karlsson
2019-12-01 13:32:41 +01:00
parent c00f97ac53
commit bcc53c9aa7
6 changed files with 151 additions and 189 deletions
@@ -3,6 +3,7 @@
#include "common/Aliases.hpp"
#include "common/Outcome.hpp"
#include "messages/MessageBuilder.hpp"
#include "providers/twitch/TwitchBadge.hpp"
#include <IrcMessage>
#include <QString>
@@ -60,6 +61,7 @@ private:
// parseHighlights only updates the visual state of the message, but leaves the playing of alerts and sounds to the triggerHighlights function
void parseHighlights();
boost::optional<EmotePtr> getTwitchBadge(const Badge &badge);
void appendTwitchEmote(
const QString &emote,
std::vector<std::tuple<int, EmotePtr, EmoteName>> &vec,