check if the vcard is correct to not TB

This commit is contained in:
Yann Leboulanger 2005-06-20 20:58:57 +00:00
parent 5f4a2b9cad
commit 858702cb1e
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ class Connection:
hostname = gajim.config.get_per('accounts', self.name, 'hostname')
frm = name + '@' + hostname
vcard = {'jid': frm}
if not vc.getTag('vCard'):
return
if vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
card = vc.getChildren()[0]
for info in card.getChildren():