diff options
Diffstat (limited to 'poezio/core/commands.py')
-rw-r--r-- | poezio/core/commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py index fd6279ec..c9605987 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -526,6 +526,8 @@ class CommandCore: theme.COLOR_INFORMATION_TEXT), }) for option_name, option_value in section.items(): + if 'password' in option_name and 'eval_password' not in option_name: + option_value = '********' lines.append( '%s\x19%s}=\x19o%s' % (option_name, dump_tuple( @@ -534,6 +536,8 @@ class CommandCore: elif len(args) == 1: option = args[0] value = config.get(option) + if 'password' in option and 'eval_password' not in option and value is not None: + value = '********' if value is None and '=' in option: args = option.split('=', 1) info = ('%s=%s' % (option, value), 'Info') |