get only the nick of MSN contacts (without %hotmail.com)

This commit is contained in:
Yann Leboulanger 2005-10-12 20:00:59 +00:00
parent a33b571766
commit 459acd9e11
1 changed files with 5 additions and 3 deletions

View File

@ -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'),