better indentation

This commit is contained in:
Yann Leboulanger 2007-01-31 11:31:07 +00:00
parent 24ea9fe5a3
commit 5fc442b6f5
2 changed files with 70 additions and 69 deletions

View file

@ -1076,6 +1076,8 @@ class ConnectionVcard:
Parse the vCard and send it to plugins'''
if not vc.getTag('vCard'):
return
if not vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
return
frm_iq = vc.getFrom()
our_jid = gajim.get_jid_from_account(self.name)
resource = ''
@ -1084,7 +1086,6 @@ class ConnectionVcard:
frm, resource = gajim.get_room_and_nick_from_fjid(who)
else:
who = frm = our_jid
if vc.getTag('vCard').getNamespace() == common.xmpp.NS_VCARD:
card = vc.getChildren()[0]
vcard = self.node_to_dict(card)
photo_decoded = None