summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows.py4
1 files changed, 3 insertions, 1 deletions
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: