From 459acd9e111848e9fe3fd52b34ee8ec024f78854 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 12 Oct 2005 20:00:59 +0000 Subject: [PATCH] get only the nick of MSN contacts (without %hotmail.com) --- src/gajim.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index fea128474..69fc1acf2 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -542,9 +542,11 @@ class Interface: 'attached_gpg_keys').split() if jid in attached_keys: keyID = attached_keys[attached_keys.index(jid) + 1] - contact1 = Contact(jid = jid, name = jid.split('@')[0], - groups = [_('General')], show = 'online', status = 'online', - ask = 'to', resource = array[1], keyID = keyID) + name = jid.split('@', 1)[0] + name = name.split('%', 1)[0] + contact1 = Contact(jid = jid, name = name, groups = [_('General')], + show = 'online', status = 'online', ask = 'to', + resource = array[1], keyID = keyID) gajim.contacts[account][jid] = [contact1] self.roster.add_contact_to_roster(jid, account) dialogs.InformationDialog(_('Authorization accepted'),