X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fignorelistmanager.cpp;fp=src%2Fcommon%2Fignorelistmanager.cpp;h=028066e85eadf104fb1dbcc6b86407731aceffaf;hp=d0ab71fb0debc864e9a5a9a497097a2e904ad4d4;hb=3144d9c1f06a6b0dcb0f19d0375ec2c082dab82a;hpb=9833654a203520941eb4053b6c0874453bcc7a74 diff --git a/src/common/ignorelistmanager.cpp b/src/common/ignorelistmanager.cpp index d0ab71fb..028066e8 100644 --- a/src/common/ignorelistmanager.cpp +++ b/src/common/ignorelistmanager.cpp @@ -23,6 +23,8 @@ #include #include +#include "util.h" + int IgnoreListManager::indexOf(const QString& ignore) const { for (int i = 0; i < _ignoreList.count(); i++) { @@ -131,10 +133,12 @@ IgnoreListManager::StrictnessType IgnoreListManager::_match( if (item.scope() == GlobalScope || (item.scope() == NetworkScope && item.scopeRuleMatcher().match(network)) || (item.scope() == ChannelScope && item.scopeRuleMatcher().match(bufferName))) { QString str; - if (item.type() == MessageIgnore) - str = msgContents; - else + if (item.type() == MessageIgnore) { + // TODO: Make this configurable? Pre-0.14, format codes were not removed + str = stripFormatCodes(msgContents); + } else { str = msgSender; + } // qDebug() << "IgnoreListManager::match: "; // qDebug() << "string: " << str;