Made cleanUpCode() as static TwitchEmotes's method.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "messages/Emote.hpp"
|
||||
#include "messages/Image.hpp"
|
||||
#include "messages/MessageElement.hpp"
|
||||
#include "providers/twitch/TwitchEmotes.hpp"
|
||||
#include "singletons/Theme.hpp"
|
||||
#include "util/DebugCount.hpp"
|
||||
|
||||
@@ -99,7 +100,7 @@ void ImageLayoutElement::addCopyTextToString(QString &str, int from,
|
||||
if (emoteElement)
|
||||
{
|
||||
str += emoteElement->getEmote()->getCopyString();
|
||||
str.replace("<", "<").replace(">", ">");
|
||||
str = TwitchEmotes::cleanUpEmoteCode(EmoteName{str});
|
||||
if (this->hasTrailingSpace())
|
||||
{
|
||||
str += " ";
|
||||
|
||||
Reference in New Issue
Block a user