X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fignorelistmanager.cpp;h=1095681b99ad5185a506003f252fcaa9ffd52129;hp=83add35904387e929e88aae4b292bf43991bb3e3;hb=HEAD;hpb=a95ad2de573027f9bee36db972bcae4195168d0c diff --git a/src/common/ignorelistmanager.cpp b/src/common/ignorelistmanager.cpp index 83add359..1095681b 100644 --- a/src/common/ignorelistmanager.cpp +++ b/src/common/ignorelistmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2020 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,15 +23,7 @@ #include #include -IgnoreListManager& IgnoreListManager::operator=(const IgnoreListManager& other) -{ - if (this == &other) - return *this; - - SyncableObject::operator=(other); - _ignoreList = other._ignoreList; - return *this; -} +#include "util.h" int IgnoreListManager::indexOf(const QString& ignore) const { @@ -141,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;