get only the nick of MSN contacts (without %hotmail.com)
This commit is contained in:
parent
a33b571766
commit
459acd9e11
|
@ -542,9 +542,11 @@ class Interface:
|
||||||
'attached_gpg_keys').split()
|
'attached_gpg_keys').split()
|
||||||
if jid in attached_keys:
|
if jid in attached_keys:
|
||||||
keyID = attached_keys[attached_keys.index(jid) + 1]
|
keyID = attached_keys[attached_keys.index(jid) + 1]
|
||||||
contact1 = Contact(jid = jid, name = jid.split('@')[0],
|
name = jid.split('@', 1)[0]
|
||||||
groups = [_('General')], show = 'online', status = 'online',
|
name = name.split('%', 1)[0]
|
||||||
ask = 'to', resource = array[1], keyID = keyID)
|
contact1 = Contact(jid = jid, name = name, groups = [_('General')],
|
||||||
|
show = 'online', status = 'online', ask = 'to',
|
||||||
|
resource = array[1], keyID = keyID)
|
||||||
gajim.contacts[account][jid] = [contact1]
|
gajim.contacts[account][jid] = [contact1]
|
||||||
self.roster.add_contact_to_roster(jid, account)
|
self.roster.add_contact_to_roster(jid, account)
|
||||||
dialogs.InformationDialog(_('Authorization accepted'),
|
dialogs.InformationDialog(_('Authorization accepted'),
|
||||||
|
|
Loading…
Reference in New Issue