fix online / total transport count

This commit is contained in:
Yann Leboulanger 2007-01-24 10:00:17 +00:00
parent be81dbcc40
commit 9a3505a9e3
1 changed files with 6 additions and 2 deletions

View File

@ -276,8 +276,12 @@ class Contacts:
else:
contact_groups = contact.groups
if not contact_groups:
# Contact is not in a group, so count it in General group
contact_groups.append(_('General'))
# Contact is not in a group, so count it in General or
# Transports group
if common.gajim.jid_is_transport(jid):
contact_groups = [_('Transports')]
else:
contact_groups = [_('General')]
for group in groups:
if group in contact_groups:
in_groups = True