check if the vcard is correct to not TB
This commit is contained in:
parent
5f4a2b9cad
commit
858702cb1e
1 changed files with 2 additions and 0 deletions
|
@ -172,6 +172,8 @@ class Connection:
|
||||||
hostname = gajim.config.get_per('accounts', self.name, 'hostname')
|
hostname = gajim.config.get_per('accounts', self.name, 'hostname')
|
||||||
frm = name + '@' + hostname
|
frm = name + '@' + hostname
|
||||||
vcard = {'jid': frm}
|
vcard = {'jid': frm}
|
||||||
|
if not vc.getTag('vCard'):
|
||||||
|
return
|
||||||
if vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
|
if vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
|
||||||
card = vc.getChildren()[0]
|
card = vc.getChildren()[0]
|
||||||
for info in card.getChildren():
|
for info in card.getChildren():
|
||||||
|
|
Loading…
Add table
Reference in a new issue