From e8657b4fdb0e077802e4ae9465cc7f064fc9e70a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 26 Dec 2006 13:33:09 +0000 Subject: [PATCH] do not count not in roster contacts in online / total users. see #2801 --- src/common/contacts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/contacts.py b/src/common/contacts.py index 29d9faa0f..7cc89b0a8 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -268,6 +268,8 @@ class Contacts: # do not count transports continue contact = self.get_contact_with_highest_priority(account, jid) + if _('Not in roster') in contact.groups: + continue in_groups = False if groups == []: in_groups = True