From 053cbdcaeb479035285f64188ff579a116d2954d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 3 Aug 2005 13:46:48 +0000 Subject: [PATCH] introducing gajim.get_number_of_accounts() --- src/common/gajim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/gajim.py b/src/common/gajim.py index ff9a0b16e..00a1feac7 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -123,3 +123,6 @@ def get_resource_from_jid(jid): [15:32:54] they can have resource if we know the real jid [15:33:07] and that resource is in contact.resource ''' + +def get_number_of_accounts(): + return len(connections.keys())