|
Chatterino
|
MessagePredicate checking for the badges of a message. More...
#include <BadgePredicate.hpp>
Public Member Functions | |
| BadgePredicate (const QStringList &badges) | |
| Create an BadgePredicate with a list of badges to search for. More... | |
| bool | appliesTo (const Message &message) override |
| Checks whether the message contains any of the badges passed in the constructor. More... | |
MessagePredicate checking for the badges of a message.
This predicate will only allow messages that are sent by a list of users, specified by their user names, who have a badge specified (i.e 'staff').
| chatterino::BadgePredicate::BadgePredicate | ( | const QStringList & | badges | ) |
Create an BadgePredicate with a list of badges to search for.
| badges | a list of badges that a message should contain |
|
overridevirtual |
Checks whether the message contains any of the badges passed in the constructor.
| message | the message to check |
Implements chatterino::MessagePredicate.
1.8.13