summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-04 16:01:35 +0100
committermathieui <mathieui@mathieui.net>2013-03-04 16:01:35 +0100
commitf40cfe26699a60191ab7dfd719206ced739d3955 (patch)
treea654386a07285fff0fecb8e5de808fa474f73456 /src
parentf7204ab0a37971e77c3601f7167db79d805a2428 (diff)
downloadpoezio-f40cfe26699a60191ab7dfd719206ced739d3955.tar.gz
poezio-f40cfe26699a60191ab7dfd719206ced739d3955.tar.bz2
poezio-f40cfe26699a60191ab7dfd719206ced739d3955.tar.xz
poezio-f40cfe26699a60191ab7dfd719206ced739d3955.zip
Add a show_s2s_errors config option (cf #2182)
Diffstat (limited to 'src')
-rw-r--r--src/windows.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows.py b/src/windows.py
index 3919ea8f..f759fa1b 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1895,7 +1895,7 @@ class RosterWin(Win):
added += 4
if contact.ask:
added += len(get_theme().CHAR_ROSTER_ASKED)
- if contact.error:
+ if config.get('show_s2s_errors', 'true').lower() == 'true' and contact.error:
added += len(get_theme().CHAR_ROSTER_ERROR)
if config.getl('show_roster_jids', 'true') == 'false' and contact.name:
@@ -1913,7 +1913,7 @@ class RosterWin(Win):
self.addstr(display_name)
if contact.ask:
self.addstr(get_theme().CHAR_ROSTER_ASKED, to_curses_attr(get_theme().COLOR_IMPORTANT_TEXT))
- if contact.error:
+ if config.get('show_s2s_errors', 'true').lower() == 'true' and contact.error:
self.addstr(get_theme().CHAR_ROSTER_ERROR, to_curses_attr(get_theme().COLOR_ROSTER_ERROR))
self.finish_line()