This commit is contained in:
mathieui 2012-04-19 01:33:16 +02:00
parent abe8c0ab71
commit 46c197ef7f

View file

@ -2264,10 +2264,11 @@ class RosterInfoTab(Tab):
if isinstance(selected_row, Contact):
cont = selected_row
res = selected_row.get_highest_priority_resource()
msg = 'Contact: %s (%s)\n%s connected resources\nCurrent status: %s' % (
msg = 'Contact: %s (%s)\n%s connected resource%s\nCurrent status: %s' % (
cont.bare_jid,
res.presence if res else 'unavailable',
cont.get_nb_resources(),
'' if cont.get_nb_resources() == 1 else 's',
res.status if res else '',)
elif isinstance(selected_row, Resource):
res = selected_row