feat: add channel for messages caught by AutoMod (#4986)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -295,7 +295,8 @@ bool Channel::isWritable() const
|
||||
{
|
||||
using Type = Channel::Type;
|
||||
auto type = this->getType();
|
||||
return type != Type::TwitchMentions && type != Type::TwitchLive;
|
||||
return type != Type::TwitchMentions && type != Type::TwitchLive &&
|
||||
type != Type::TwitchAutomod;
|
||||
}
|
||||
|
||||
void Channel::sendMessage(const QString &message)
|
||||
@@ -330,7 +331,8 @@ bool Channel::isLive() const
|
||||
|
||||
bool Channel::shouldIgnoreHighlights() const
|
||||
{
|
||||
return this->type_ == Type::TwitchMentions ||
|
||||
return this->type_ == Type::TwitchAutomod ||
|
||||
this->type_ == Type::TwitchMentions ||
|
||||
this->type_ == Type::TwitchWhispers;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ public:
|
||||
TwitchWatching,
|
||||
TwitchMentions,
|
||||
TwitchLive,
|
||||
TwitchAutomod,
|
||||
TwitchEnd,
|
||||
Irc,
|
||||
Misc
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace chatterino {
|
||||
enum class WindowType;
|
||||
|
||||
struct SplitDescriptor {
|
||||
// Twitch or mentions or watching or whispers or IRC
|
||||
// Twitch or mentions or watching or live or automod or whispers or IRC
|
||||
QString type_;
|
||||
|
||||
// Twitch Channel name or IRC channel name
|
||||
|
||||
Reference in New Issue
Block a user