do not send online show in presence

This commit is contained in:
Yann Leboulanger 2005-09-01 17:16:35 +00:00
parent 933f9c9a27
commit 924b1e3df2
1 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ class Connection:
self.vcard_sha = ''
self.dispatch('MYVCARD', vcard)
#we re-send our presence with sha
sshow = STATUS_LIST[self.connected]
sshow = STATUS_LIST[self.connected]
if sshow == 'online':
sshow = None
prio = unicode(gajim.config.get_per('accounts', self.name,
'priority'))
p = common.xmpp.Presence(typ = None, priority = prio, show = sshow,