summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-19 00:20:03 +0200
committermathieui <mathieui@mathieui.net>2012-04-19 00:20:03 +0200
commitabe8c0ab7143abbf41b756fb4593e8ea1f86b413 (patch)
tree05ffd159788ba28069d17ec193064032dfe52bce /src
parent9ddd2481c7e5f32a4984e2796bff4654eb396f0d (diff)
downloadpoezio-abe8c0ab7143abbf41b756fb4593e8ea1f86b413.tar.gz
poezio-abe8c0ab7143abbf41b756fb4593e8ea1f86b413.tar.bz2
poezio-abe8c0ab7143abbf41b756fb4593e8ea1f86b413.tar.xz
poezio-abe8c0ab7143abbf41b756fb4593e8ea1f86b413.zip
Add a show_roster_jids option
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: