Skip to content
Snippets Groups Projects
Commit ac3f96ea authored by nkour's avatar nkour
Browse files

gajim.get_jid_from_account(account_name)

parent a1c0fbb4
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment