Added a bunch of stuff, we now collect all the pubsub automod messages and also displays a caught message to a mod

This commit is contained in:
apa420
2019-01-20 01:02:04 +01:00
parent ae18f35dfb
commit 0b2480d715
12 changed files with 249 additions and 79 deletions
+5 -1
View File
@@ -4,10 +4,12 @@
#include <QRegularExpression>
#include <ctime>
#include <utility>
namespace chatterino {
struct BanAction;
struct UnbanAction;
struct AutomodAction;
struct Message;
using MessagePtr = std::shared_ptr<const Message>;
@@ -19,6 +21,8 @@ const SystemMessageTag systemMessage{};
const TimeoutMessageTag timeoutMessage{};
MessagePtr makeSystemMessage(const QString &text);
std::pair<MessagePtr, MessagePtr> makeAutomodMessage(
const AutomodAction &action);
struct MessageParseArgs {
bool disablePingSounds = false;
@@ -29,6 +33,7 @@ struct MessageParseArgs {
};
class MessageBuilder
{
public:
MessageBuilder();
@@ -63,5 +68,4 @@ public:
private:
std::shared_ptr<Message> message_;
};
} // namespace chatterino