Capitalize mentions of Twitch, Chatterino, and IRC in comments and text/settings (#3274)

This commit is contained in:
Felanbird
2021-10-17 09:06:58 -04:00
committed by GitHub
parent 06245f3713
commit be3609a927
21 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ ChannelPtr AbstractIrcServer::getOrAddChannel(const QString &dirtyChannelName)
}
}));
// join irc channel
// join IRC channel
{
std::lock_guard<std::mutex> lock2(this->connectionMutex_);
+2 -2
View File
@@ -23,7 +23,7 @@ public:
virtual ~AbstractIrcServer() = default;
// initializeIrc must be called from the derived class
// this allows us to initialize the abstract irc server based on the derived class's parameters
// this allows us to initialize the abstract IRC server based on the derived class's parameters
void initializeIrc();
// connection
@@ -57,7 +57,7 @@ protected:
virtual void initializeConnectionSignals(IrcConnection *connection,
ConnectionType type){};
// initializeConnection is called every time before we try to connect to the irc server
// initializeConnection is called every time before we try to connect to the IRC server
virtual void initializeConnection(IrcConnection *connection,
ConnectionType type) = 0;
+1 -1
View File
@@ -330,7 +330,7 @@ void IrcMessageHandler::handleRoomStateMessage(Communi::IrcMessage *message)
{
const auto &tags = message->tags();
// get twitch channel
// get Twitch channel
QString chanName;
if (!trimChannelName(message->parameter(0), chanName))
{
+1 -1
View File
@@ -34,7 +34,7 @@ public:
void handleWhisperMessage(Communi::IrcMessage *message);
// parseUserNoticeMessage parses a single IRC USERNOTICE message into 0+
// chatterino messages
// Chatterino messages
std::vector<MessagePtr> parseUserNoticeMessage(
Channel *channel, Communi::IrcMessage *message);
void handleUserNoticeMessage(Communi::IrcMessage *message,
+1 -1
View File
@@ -1488,7 +1488,7 @@ void PubSub::handleMessageResponse(const rapidjson::Value &outerData)
// this message also contains per-word automod data, which could be implemented
// extract sender data manually because twitch loves not being consistent
// extract sender data manually because Twitch loves not being consistent
rapidjson::Value senderData;
if (!rj::getSafeObject(messageData, "sender", senderData))
{
+1 -1
View File
@@ -81,7 +81,7 @@ namespace {
noticeMessage = "Chat has been cleared by a moderator.";
}
// rebuild the raw irc message so we can convert it back to an ircmessage again!
// rebuild the raw IRC message so we can convert it back to an ircmessage again!
// this could probably be done in a smarter way
auto s = QString(":tmi.twitch.tv NOTICE %1 :%2")
@@ -211,7 +211,7 @@ MessagePtr TwitchMessageBuilder::build()
this->bits = iterator.value().toString();
}
// twitch emotes
// Twitch emotes
std::vector<TwitchEmoteOccurence> twitchEmotes;
iterator = this->tags.find("emotes");
@@ -1365,7 +1365,7 @@ void TwitchMessageBuilder::hostingSystemMessage(const QString &channelName,
builder->message().searchText = text;
}
// irc variant
// IRC variant
void TwitchMessageBuilder::deletionMessage(const MessagePtr originalMessage,
MessageBuilder *builder)
{