X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fignorelistmanager.h;h=ef86d5edf88fa5791fd04bac8ebdbfc39bab5d8c;hp=3a813da149acabada667285923b8a0cddb7329d9;hb=cd4f987d0d8ace10272bf1d87c788b741a9e85e8;hpb=f4cc482f39451e564f549b39549d68f46561a9aa diff --git a/src/common/ignorelistmanager.h b/src/common/ignorelistmanager.h index 3a813da1..ef86d5ed 100644 --- a/src/common/ignorelistmanager.h +++ b/src/common/ignorelistmanager.h @@ -147,7 +147,19 @@ public slots: protected: void setIgnoreList(const QList &ignoreList) { _ignoreList = ignoreList; } - bool scopeMatch(const QString &scopeRule, const QString &string) const; // scopeRule is a ';'-separated list, string is a network/channel-name + + //! Check if a scope rule matches a string + /** Checks that the string does NOT match ANY inverted rules (prefixed by '!'), then checks that + * it matches AT LEAST one normal (non-inverted) rule. + * + * If only inverted rules are specified, it'll match so long as the string does not match any + * inverted rules (implicit wildcard). + * + * \param scopeRule A ';'-separated list of wildcard expressions, prefix of '!' inverts subrule + * \param string String to test, e.g. network/channel name + * \return True if matches, otherwise false + */ + bool scopeMatch(const QString &scopeRule, const QString &string) const; StrictnessType _match(const QString &msgContents, const QString &msgSender, Message::Type msgType, const QString &network, const QString &bufferName);