From 903941fe03e8dd30d8692c558d20670dda572dd4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 18 Aug 2005 08:33:51 +0000 Subject: [PATCH] send priority on EVERY presences --- src/common/connection.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 99e68be16..7bdbb00b1 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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)