Chatterino
|
MessagePredicate checking for the author/sender of a message. More...
#include <AuthorPredicate.hpp>
Public Member Functions | |
AuthorPredicate (const QStringList &authors) | |
Create an AuthorPredicate with a list of users to search for. More... | |
bool | appliesTo (const Message &message) |
Checks whether the message is authored by any of the users passed in the constructor. More... | |
MessagePredicate checking for the author/sender of a message.
This predicate will only allow messages that are sent by a list of users, specified by their user names.
chatterino::AuthorPredicate::AuthorPredicate | ( | const QStringList & | authors | ) |
Create an AuthorPredicate with a list of users to search for.
authors | a list of user names that a message should be sent from |
|
virtual |
Checks whether the message is authored by any of the users passed in the constructor.
message | the message to check |
Implements chatterino::MessagePredicate.