gajim.get_jid_from_account(account_name)

This commit is contained in:
Nikos Kouremenos 2005-09-09 20:52:29 +00:00
parent a1c0fbb4b0
commit ac3f96eac9
1 changed files with 6 additions and 0 deletions

View File

@ -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