diff options
author | mathieui <mathieui@mathieui.net> | 2012-10-15 14:32:08 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-10-15 14:32:08 +0200 |
commit | cbaa46929876de38b02747a1e6f58a23b562bb56 (patch) | |
tree | 7deca8fcba25f80198c2c19f43f77003b7f57bef /src/roster.py | |
parent | 6eac68999315c1ec11b91dde434d73372b3a89a3 (diff) | |
download | poezio-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.py | 2 |
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 |