mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Compare commits
7 commits
eb2c91c80d
...
cc3934c60a
Author | SHA1 | Date | |
---|---|---|---|
cc3934c60a | |||
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)
|
// unhandled (not clear what we'd do here yet)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SubscriptionType::CreateEmoteSet: {
|
||||||
|
// unhandled (c2 does not support custom emote sets)
|
||||||
|
}
|
||||||
|
break;
|
||||||
default: {
|
default: {
|
||||||
qCDebug(chatterinoSeventvEventAPI)
|
qCDebug(chatterinoSeventvEventAPI)
|
||||||
<< "Unknown subscription type:"
|
<< "Unknown subscription type:"
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#include <pajlada/signals/signalholder.hpp>
|
#include <pajlada/signals/signalholder.hpp>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QMetaEnum>
|
#include <QMetaEnum>
|
||||||
#include <QStringBuilder>
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -149,6 +148,8 @@ bool shouldSendHelixChat()
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
|
using namespace literals;
|
||||||
|
|
||||||
TwitchIrcServer::TwitchIrcServer()
|
TwitchIrcServer::TwitchIrcServer()
|
||||||
: whispersChannel(new Channel("/whispers", Channel::Type::TwitchWhispers))
|
: whispersChannel(new Channel("/whispers", Channel::Type::TwitchWhispers))
|
||||||
, mentionsChannel(new Channel("/mentions", Channel::Type::TwitchMentions))
|
, mentionsChannel(new Channel("/mentions", Channel::Type::TwitchMentions))
|
||||||
|
@ -504,25 +505,22 @@ void TwitchIrcServer::initialize()
|
||||||
if (hideBlockedTerms)
|
if (hideBlockedTerms)
|
||||||
{
|
{
|
||||||
action.reason =
|
action.reason =
|
||||||
u"matched " %
|
u"matches %1 blocked term%2"_s
|
||||||
QString::number(
|
.arg(numBlockedTermsMatched)
|
||||||
numBlockedTermsMatched) %
|
.arg(numBlockedTermsMatched > 1
|
||||||
u" blocked term" %
|
? u"s"
|
||||||
(numBlockedTermsMatched > 1 ? u"s"
|
|
||||||
: u"");
|
: u"");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
action.reason =
|
action.reason =
|
||||||
u"matched " %
|
u"matches %1 blocked term%2 \"%3\""_s
|
||||||
QString::number(
|
.arg(numBlockedTermsMatched)
|
||||||
numBlockedTermsMatched) %
|
.arg(numBlockedTermsMatched > 1
|
||||||
u" blocked term" %
|
? u"s"
|
||||||
(numBlockedTermsMatched > 1 ? u"s"
|
: u"")
|
||||||
: u"") %
|
.arg(msg.blockedTermsFound.join(
|
||||||
u": \"" %
|
u"\", \""));
|
||||||
msg.blockedTermsFound.join(u"\", \"") %
|
|
||||||
u"\"";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue