refactor: Move Emotes to Application (#5120)
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
#include "Application.hpp"
|
||||
#include "controllers/accounts/AccountController.hpp"
|
||||
#include "controllers/completion/sources/Helpers.hpp"
|
||||
#include "providers/bttv/BttvEmotes.hpp"
|
||||
#include "providers/emoji/Emojis.hpp"
|
||||
#include "providers/ffz/FfzEmotes.hpp"
|
||||
#include "providers/seventv/SeventvEmotes.hpp"
|
||||
#include "providers/twitch/TwitchAccount.hpp"
|
||||
#include "providers/twitch/TwitchChannel.hpp"
|
||||
#include "providers/twitch/TwitchIrcServer.hpp"
|
||||
@@ -127,15 +130,15 @@ void EmoteSource::initializeFromChannel(const Channel *channel)
|
||||
}
|
||||
}
|
||||
|
||||
if (auto bttvG = app->getTwitch()->getBttvEmotes().emotes())
|
||||
if (auto bttvG = app->getBttvEmotes()->emotes())
|
||||
{
|
||||
addEmotes(emotes, *bttvG, "Global BetterTTV");
|
||||
}
|
||||
if (auto ffzG = app->getTwitch()->getFfzEmotes().emotes())
|
||||
if (auto ffzG = app->getFfzEmotes()->emotes())
|
||||
{
|
||||
addEmotes(emotes, *ffzG, "Global FrankerFaceZ");
|
||||
}
|
||||
if (auto seventvG = app->getTwitch()->getSeventvEmotes().globalEmotes())
|
||||
if (auto seventvG = app->getSeventvEmotes()->globalEmotes())
|
||||
{
|
||||
addEmotes(emotes, *seventvG, "Global 7TV");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user