From e5ee6829dae02e6a608172b524e19900cf006a96 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 19 Jun 2005 11:20:06 +0000 Subject: [PATCH] gropchat messages that are not for us do not count as new messages --- src/chat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat.py b/src/chat.py index 5a0e24503..3f1e901d0 100644 --- a/src/chat.py +++ b/src/chat.py @@ -771,6 +771,9 @@ class Chat: if (jid != self.get_active_jid() or \ not self.window.is_active() or \ not end) and kind == 'incoming': + if self.widget_name == 'groupchat_window': # Do not print gc messages + if text.find(self.nicks[jid]) == -1: # that are not for us + return self.nb_unread[jid] += 1 if self.plugin.systray_enabled: self.plugin.systray.add_jid(jid, self.account)