diff options
Diffstat (limited to 'src/roster.py')
-rw-r--r-- | src/roster.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |