From 4bc0430587163f1d948dd0944fa284daba2dd5c2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 30 Dec 2005 11:36:10 +0000 Subject: [PATCH] missing new finctions in vcard --- src/vcard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index 57bbdc6c9..a40ef2c94 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -330,8 +330,9 @@ class VcardWindow: self.os_info = {0: {'resource': self.contact.resource, 'client': '', 'os': ''}} i = 1 - if gajim.contacts[self.account].has_key(self.contact.jid): - for c in gajim.contacts[self.account][self.contact.jid]: + contact_list = gajim.contacts.get_contact(self.account, self.contact.jid) + if contact_list: + for c in contact_list: if c.resource != self.contact.resource: resources += '\n%s (%s)' % (c.resource, unicode(c.priority))