Fixed highlighting of buffers caused by ignored messages.
authorJaak Ristioja <ristioja@gmail.com>
Sat, 19 Jun 2010 20:06:29 +0000 (23:06 +0300)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 11 Aug 2010 14:46:50 +0000 (16:46 +0200)
src/client/networkmodel.cpp

index e984a8b..c25fda6 100644 (file)
@@ -26,6 +26,7 @@
 #include "buffermodel.h"
 #include "buffersettings.h"
 #include "client.h"
+#include "clientignorelistmanager.h"
 #include "clientsettings.h"
 #include "ircchannel.h"
 #include "network.h"
@@ -250,6 +251,10 @@ void BufferItem::updateActivityLevel(const Message &msg) {
   if(msg.flags() & Message::Self)      // don't update activity for our own messages
     return;
 
+  if (Client::ignoreListManager()
+      && Client::ignoreListManager()->match(msg, qobject_cast<NetworkItem *>(parent())->networkName()))
+    return;
+
   if(msg.msgId() <= lastSeenMsgId())
     return;