summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.py1
-rw-r--r--src/windows/info_wins.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/config.py b/src/config.py
index a6f1417e..701bfaad 100644
--- a/src/config.py
+++ b/src/config.py
@@ -108,6 +108,7 @@ DEFAULT_CONFIG = {
'server': 'anon.jeproteste.info',
'show_composing_tabs': 'direct',
'show_inactive_tabs': True,
+ 'show_jid_in_conversations': True,
'show_muc_jid': True,
'show_roster_jids': True,
'show_roster_subscriptions': '',
diff --git a/src/windows/info_wins.py b/src/windows/info_wins.py
index 80af4602..f6aebd35 100644
--- a/src/windows/info_wins.py
+++ b/src/windows/info_wins.py
@@ -7,6 +7,7 @@ import logging
log = logging.getLogger(__name__)
from common import safeJID
+from config import config
from . import Win
from . funcs import truncate_nick
@@ -136,7 +137,8 @@ class ConversationInfoWin(InfoWin):
# resource can now be a Resource: user is in the roster and online
# or resource is None: user is in the roster but offline
self._win.erase()
- self.write_contact_jid(jid)
+ if config.get('show_jid_in_conversations'):
+ self.write_contact_jid(jid)
self.write_contact_informations(contact)
self.write_resource_information(resource)
self.print_scroll_position(window)