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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user