gropchat messages that are not for us do not count as new messages

This commit is contained in:
Yann Leboulanger 2005-06-19 11:20:06 +00:00
parent f6ca384845
commit e5ee6829da
1 changed files with 3 additions and 0 deletions

View File

@ -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)