From 01f3409505a6d0a0459b79f2d9c3895cd7078a70 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 2 Feb 2011 00:51:34 +0100 Subject: fixed #2115 --- src/roster.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/roster.py') diff --git a/src/roster.py b/src/roster.py index 97975d33..5f927173 100644 --- a/src/roster.py +++ b/src/roster.py @@ -134,6 +134,15 @@ class Roster(object): log.debug('folded:%s\n' %folded_groups) config.set_and_save('folded_roster_groups', folded_groups, 'var') + def get_nb_connected_contacts(self): + """ + Return the number of contacts connected + """ + length = 0 + for group in self._roster_groups: + length += group.get_nb_connected_contacts() + return length + def __len__(self): """ Return the number of line that would be printed -- cgit v1.2.3