Revisement of fixing text emotes

Fixing the order of text emotes.
This commit is contained in:
Lajamerr Mittesdine 2018-06-04 18:06:55 -04:00 committed by fourtf
parent 3c8bb5e9bb
commit 4430f0b9a9

View file

@ -550,11 +550,11 @@ util::EmoteData EmoteManager::getTwitchEmoteById(long id, const QString &emoteNa
_emoteName.replace(">", ">");
static QMap<QString, QString> emoteNameReplacements{
{"\\:-?\\)", ":-)"}, {"\\:-?\\(", ":-("}, {"\\:-?D", ":-D"},
{"\\&gt\\;\\(", "&gt;("}, {"\\:-?[z|Z|\\|]", ":-Z"}, {"[oO](_|\\.)[oO]", "O_o"},
{"B-?\\)", "B-)"}, {"\\:-?(o|O)", ":-O"}, {"\\&lt\\;3", "&lt;3"},
{"\\:-?[\\\\/]", ":-/"}, {"\\;-?\\)", ";-)"}, {"\\:-?(p|P)", ":-P"},
{"\\;-?(p|P)", ";-P"}, {"R-?\\)", "R-)"},
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", "&gt;("}, {"\\&lt\\;3", "&lt;3"},
{"\\:-?(o|O)", ":-O"}, {"\\:-?(p|P)", ":-P"}, {"\\:-?[\\\\/]", ":-/"},
{"\\:-?[z|Z|\\|]", ":-Z"}, {"\\:-?\\(", ":-("}, {"\\:-?\\)", ":-)"},
{"\\:-?D", ":-D"}, {"\\;-?(p|P)", ";-P"}, {"\\;-?\\)", ";-)"},
{"R-?\\)", "R-)"}, {"B-?\\)", "B-)"},
};
auto it = emoteNameReplacements.find(_emoteName);