From ac3f96eac97f59333df0ad76324648ebf677a06d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 9 Sep 2005 20:52:29 +0000 Subject: [PATCH] gajim.get_jid_from_account(account_name) --- src/common/gajim.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/gajim.py b/src/common/gajim.py index 205bae533..02802b09f 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -183,3 +183,9 @@ def jid_is_transport(jid): jid.startswith('irc') or jid.startswith('icq') or\ jid.startswith('msn') or jid.startswith('sms') or\ jid.startswith('yahoo') + +def get_jid_from_account(account_name): + name = config.get_per('accounts', account_name, 'name') + hostname = gajim.config.get_per('accounts', account_name, 'hostname') + jid = name + '@' + hostname + return jid