better indentation
This commit is contained in:
parent
24ea9fe5a3
commit
5fc442b6f5
2 changed files with 70 additions and 69 deletions
|
@ -1076,6 +1076,8 @@ class ConnectionVcard:
|
||||||
Parse the vCard and send it to plugins'''
|
Parse the vCard and send it to plugins'''
|
||||||
if not vc.getTag('vCard'):
|
if not vc.getTag('vCard'):
|
||||||
return
|
return
|
||||||
|
if not vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
|
||||||
|
return
|
||||||
frm_iq = vc.getFrom()
|
frm_iq = vc.getFrom()
|
||||||
our_jid = gajim.get_jid_from_account(self.name)
|
our_jid = gajim.get_jid_from_account(self.name)
|
||||||
resource = ''
|
resource = ''
|
||||||
|
@ -1084,7 +1086,6 @@ class ConnectionVcard:
|
||||||
frm, resource = gajim.get_room_and_nick_from_fjid(who)
|
frm, resource = gajim.get_room_and_nick_from_fjid(who)
|
||||||
else:
|
else:
|
||||||
who = frm = our_jid
|
who = frm = our_jid
|
||||||
if vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
|
|
||||||
card = vc.getChildren()[0]
|
card = vc.getChildren()[0]
|
||||||
vcard = self.node_to_dict(card)
|
vcard = self.node_to_dict(card)
|
||||||
photo_decoded = None
|
photo_decoded = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue