send priority on EVERY presences

This commit is contained in:
Yann Leboulanger 2005-08-18 08:33:51 +00:00
parent 6cb304610b
commit 903941fe03
1 changed files with 3 additions and 2 deletions

View File

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