From f40cfe26699a60191ab7dfd719206ced739d3955 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 4 Mar 2013 16:01:35 +0100 Subject: Add a show_s2s_errors config option (cf #2182) --- src/windows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3