From abe8c0ab7143abbf41b756fb4593e8ea1f86b413 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 19 Apr 2012 00:20:03 +0200 Subject: Add a show_roster_jids option --- src/windows.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/windows.py b/src/windows.py index fe4d16ce..802a6230 100644 --- a/src/windows.py +++ b/src/windows.py @@ -1628,7 +1628,9 @@ class RosterWin(Win): presence = resource.presence nb = ' (%s)' % (contact.get_nb_resources(),) color = RosterWin.color_show[presence]() - if contact.name: + if config.getl('show_roster_jids', 'true') == 'false' and contact.name: + display_name = '%s %s' % (contact.name, nb[1:]) + elif contact.name: display_name = '%s (%s)%s' % (contact.name, contact.bare_jid, nb,) else: -- cgit v1.2.3