summaryrefslogtreecommitdiff
path: root/src/roster.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-10-15 14:32:08 +0200
committermathieui <mathieui@mathieui.net>2012-10-15 14:32:08 +0200
commitcbaa46929876de38b02747a1e6f58a23b562bb56 (patch)
tree7deca8fcba25f80198c2c19f43f77003b7f57bef /src/roster.py
parent6eac68999315c1ec11b91dde434d73372b3a89a3 (diff)
downloadpoezio-cbaa46929876de38b02747a1e6f58a23b562bb56.tar.gz
poezio-cbaa46929876de38b02747a1e6f58a23b562bb56.tar.bz2
poezio-cbaa46929876de38b02747a1e6f58a23b562bb56.tar.xz
poezio-cbaa46929876de38b02747a1e6f58a23b562bb56.zip
Fix the number of connected contacts/total number in the roster
Diffstat (limited to 'src/roster.py')
-rw-r--r--src/roster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roster.py b/src/roster.py
index ac25d525..b6e24076 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -149,7 +149,7 @@ class Roster(object):
"""
n = 0
for contact in self:
- if contact.resources:
+ if len(contact):
n += 1
return n