diff options
author | mathieui <mathieui@mathieui.net> | 2012-04-19 01:33:16 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-04-19 01:33:16 +0200 |
commit | 46c197ef7f958ec3d55aaf3455b3715f5a00dea6 (patch) | |
tree | 13c929ac0ca076a21a635e928fee6a9333499f82 /src/tabs.py | |
parent | abe8c0ab7143abbf41b756fb4593e8ea1f86b413 (diff) | |
download | poezio-46c197ef7f958ec3d55aaf3455b3715f5a00dea6.tar.gz poezio-46c197ef7f958ec3d55aaf3455b3715f5a00dea6.tar.bz2 poezio-46c197ef7f958ec3d55aaf3455b3715f5a00dea6.tar.xz poezio-46c197ef7f958ec3d55aaf3455b3715f5a00dea6.zip |
Fixes #2355
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |