Chatterino
|
MessagePredicate checking for the channel a message was sent in. More...
#include <ChannelPredicate.hpp>
Public Member Functions | |
ChannelPredicate (const QStringList &channels) | |
Create a ChannelPredicate with a list of channels to search for. More... | |
bool | appliesTo (const Message &message) |
Checks whether the message was sent in any of the channels passed in the constructor. More... | |
MessagePredicate checking for the channel a message was sent in.
This predicate will only allow messages that are sent in a list of channels, specified by their names.
chatterino::ChannelPredicate::ChannelPredicate | ( | const QStringList & | channels | ) |
Create a ChannelPredicate with a list of channels to search for.
channels | a list of channel names that a message should be sent in |
|
virtual |
Checks whether the message was sent in any of the channels passed in the constructor.
message | the message to check |
Implements chatterino::MessagePredicate.