From 46c197ef7f958ec3d55aaf3455b3715f5a00dea6 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 19 Apr 2012 01:33:16 +0200 Subject: [PATCH] Fixes #2355 --- src/tabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabs.py b/src/tabs.py index 2c714bac..1ef93511 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -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