From cbaa46929876de38b02747a1e6f58a23b562bb56 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 15 Oct 2012 14:32:08 +0200 Subject: Fix the number of connected contacts/total number in the roster --- src/roster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roster.py') 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 -- cgit v1.2.3