Fix the number of connected contacts/total number in the roster

This commit is contained in:
mathieui 2012-10-15 14:32:08 +02:00
parent 6eac689993
commit cbaa469298

View file

@ -149,7 +149,7 @@ class Roster(object):
"""
n = 0
for contact in self:
if contact.resources:
if len(contact):
n += 1
return n