mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Compare commits
6 commits
6a2979bd4d
...
56ba1ca2ee
Author | SHA1 | Date | |
---|---|---|---|
56ba1ca2ee | |||
8a69861ead | |||
40490a90fb | |||
1199f5e763 | |||
12fa816564 | |||
5b1ce32a4e |
|
@ -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:"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue