print priority in infoUser window

This commit is contained in:
Yann Leboulanger 2004-06-09 20:38:27 +00:00
parent f0214b0ac6
commit 5d3082598e
1 changed files with 2 additions and 2 deletions

View File

@ -161,13 +161,13 @@ class infoUser_Window:
self.xml.get_widget('label_id').set_text(user.jid)
self.xml.get_widget('label_sub').set_text(user.sub)
self.xml.get_widget('entry_name').set_text(user.name)
resources = user.resource
resources = user.resource + ' (' + user.priority + ')'
if not user.status:
user.status = ''
stats = user.show + ' : ' + user.status
for u in self.plugin.roster.contacts[account][user.jid]:
if u.resource != user.resource:
resources += '\n' + u.resource
resources += '\n' + u.resource + ' (' + u.priority + ')'
if not u.status:
u.status = ''
stats += '\n' + u.show + ' : ' + u.status