Compare commits

..

7 commits

Author SHA1 Message Date
pajlada cc3934c60a
Merge 56ba1ca2ee into 5b1ce32a4e 2024-11-06 18:08:13 +01:00
Rasmus Karlsson 56ba1ca2ee
oopsie 2 2024-11-06 18:08:07 +01:00
Rasmus Karlsson 8a69861ead
opsie 2024-11-06 17:36:38 +01:00
Rasmus Karlsson 40490a90fb
remove unused include 2024-11-06 17:16:12 +01:00
Rasmus Karlsson 1199f5e763
clean up reason generation 2024-11-06 17:14:32 +01:00
Rasmus Karlsson 12fa816564
improve automod blocked term messaging 2024-11-06 16:58:00 +01:00
pajlada 5b1ce32a4e
fix: don't spam debug output about 7TV CreateEmoteSet (#5700) 2024-11-06 15:07:33 +01:00
2 changed files with 18 additions and 16 deletions

View file

@ -237,6 +237,10 @@ void SeventvEventAPI::handleDispatch(const Dispatch &dispatch)
// unhandled (not clear what we'd do here yet)
}
break;
case SubscriptionType::CreateEmoteSet: {
// unhandled (c2 does not support custom emote sets)
}
break;
default: {
qCDebug(chatterinoSeventvEventAPI)
<< "Unknown subscription type:"

View file

@ -33,7 +33,6 @@
#include <pajlada/signals/signalholder.hpp>
#include <QCoreApplication>
#include <QMetaEnum>
#include <QStringBuilder>
#include <cassert>
#include <functional>
@ -149,6 +148,8 @@ bool shouldSendHelixChat()
namespace chatterino {
using namespace literals;
TwitchIrcServer::TwitchIrcServer()
: whispersChannel(new Channel("/whispers", Channel::Type::TwitchWhispers))
, mentionsChannel(new Channel("/mentions", Channel::Type::TwitchMentions))
@ -504,25 +505,22 @@ void TwitchIrcServer::initialize()
if (hideBlockedTerms)
{
action.reason =
u"matched " %
QString::number(
numBlockedTermsMatched) %
u" blocked term" %
(numBlockedTermsMatched > 1 ? u"s"
: u"");
u"matches %1 blocked term%2"_s
.arg(numBlockedTermsMatched)
.arg(numBlockedTermsMatched > 1
? u"s"
: u"");
}
else
{
action.reason =
u"matched " %
QString::number(
numBlockedTermsMatched) %
u" blocked term" %
(numBlockedTermsMatched > 1 ? u"s"
: u"") %
u": \"" %
msg.blockedTermsFound.join(u"\", \"") %
u"\"";
u"matches %1 blocked term%2 \"%3\""_s
.arg(numBlockedTermsMatched)
.arg(numBlockedTermsMatched > 1
? u"s"
: u"")
.arg(msg.blockedTermsFound.join(
u"\", \""));
}
}
else