Move FFZ emotes to its own class

This commit is contained in:
Rasmus Karlsson
2018-06-05 18:07:17 +02:00
committed by fourtf
parent f83c07be53
commit 78664f79ee
9 changed files with 194 additions and 159 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ void CompletionModel::refresh()
}
// Global: FFZ Global Emotes
std::vector<std::string> &ffzGlobalEmoteCodes = app->emotes->ffzGlobalEmoteCodes;
std::vector<std::string> &ffzGlobalEmoteCodes = app->emotes->ffz.globalEmoteCodes;
for (const auto &m : ffzGlobalEmoteCodes) {
this->addString(m, TaggedString::Type::FFZGlobalEmote);
}
@@ -52,7 +52,7 @@ void CompletionModel::refresh()
// Channel-specific: FFZ Channel Emotes
std::vector<std::string> &ffzChannelEmoteCodes =
app->emotes->ffzChannelEmoteCodes[this->channelName.toStdString()];
app->emotes->ffz.channelEmoteCodes[this->channelName.toStdString()];
for (const auto &m : ffzChannelEmoteCodes) {
this->addString(m, TaggedString::Type::FFZChannelEmote);
}