Makes it possible to hide one man spam (#1496)

This commit is contained in:
hemirt
2020-02-02 14:31:37 +01:00
committed by GitHub
parent 497ce2d2f2
commit 1fd64be7f5
9 changed files with 164 additions and 1 deletions
@@ -1,6 +1,7 @@
#pragma once
#include <IrcMessage>
#include "common/Channel.hpp"
#include "messages/Message.hpp"
namespace chatterino {
@@ -49,6 +50,10 @@ public:
void handleJoinMessage(Communi::IrcMessage *message);
void handlePartMessage(Communi::IrcMessage *message);
static float similarity(MessagePtr msg,
const LimitedQueueSnapshot<MessagePtr> &messages);
static void setSimilarityFlags(MessagePtr message, ChannelPtr channel);
private:
void addMessage(Communi::IrcMessage *message, const QString &target,
const QString &content, TwitchIrcServer &server,