if (!item.isActive || item.type == CtcpIgnore)
continue;
if (item.scope == GlobalScope
- || (item.scope == NetworkScope && scopeMatch(item.scopeRule, network))
- || (item.scope == ChannelScope && scopeMatch(item.scopeRule, bufferName))) {
+ || (item.scope == NetworkScope && scopeMatch(network, item.scopeRule))
+ || (item.scope == ChannelScope && scopeMatch(bufferName, item.scopeRule))) {
QString str;
if (item.type == MessageIgnore)
str = msgContents;
foreach(IgnoreListItem item, _ignoreList) {
if (!item.isActive)
continue;
- if (item.scope == GlobalScope || (item.scope == NetworkScope && scopeMatch(item.scopeRule, network))) {
+ if (item.scope == GlobalScope || (item.scope == NetworkScope && scopeMatch(network, item.scopeRule))) {
QString sender_;
QStringList types = item.ignoreRule.split(QRegExp("\\s+"), QString::SkipEmptyParts);