feat: add channel for messages caught by AutoMod (#4986)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -43,6 +43,7 @@ TwitchIrcServer::TwitchIrcServer()
|
||||
: whispersChannel(new Channel("/whispers", Channel::Type::TwitchWhispers))
|
||||
, mentionsChannel(new Channel("/mentions", Channel::Type::TwitchMentions))
|
||||
, liveChannel(new Channel("/live", Channel::Type::TwitchLive))
|
||||
, automodChannel(new Channel("/automod", Channel::Type::TwitchAutomod))
|
||||
, watchingChannel(Channel::getEmpty(), Channel::Type::TwitchWatching)
|
||||
{
|
||||
this->initializeIrc();
|
||||
@@ -272,6 +273,11 @@ std::shared_ptr<Channel> TwitchIrcServer::getCustomChannel(
|
||||
return this->liveChannel;
|
||||
}
|
||||
|
||||
if (channelName == "/automod")
|
||||
{
|
||||
return this->automodChannel;
|
||||
}
|
||||
|
||||
static auto getTimer = [](ChannelPtr channel, int msBetweenMessages,
|
||||
bool addInitialMessages) {
|
||||
if (addInitialMessages)
|
||||
@@ -383,6 +389,7 @@ void TwitchIrcServer::forEachChannelAndSpecialChannels(
|
||||
func(this->whispersChannel);
|
||||
func(this->mentionsChannel);
|
||||
func(this->liveChannel);
|
||||
func(this->automodChannel);
|
||||
}
|
||||
|
||||
std::shared_ptr<Channel> TwitchIrcServer::getChannelOrEmptyByID(
|
||||
|
||||
Reference in New Issue
Block a user