don't send sha-presence when we are invisible

This commit is contained in:
Yann Leboulanger 2005-09-07 14:41:14 +00:00
parent e3236bdfa8
commit fec1eb1c5c

View file

@ -219,7 +219,9 @@ class Connection:
else:
self.vcard_sha = ''
self.dispatch('MYVCARD', vcard)
#we re-send our presence with sha
#we re-send our presence with sha if we are not invisible
if STATUS_LIST[self.connected] == 'invisible':
return
sshow = helpers.get_xmpp_show(STATUS_LIST[self.connected])
prio = unicode(gajim.config.get_per('accounts', self.name,
'priority'))