From 09d4922d3740eb0ad2e42e02ca5d57f03b263eab Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 21 Nov 2010 19:34:59 +0000 Subject: Be clearer about password settings being intentionally hidden (and not really empty). Bug #657 and confusing BitlBee users since probably 2002. --- root_commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index 81e33076..db29d088 100644 --- a/root_commands.c +++ b/root_commands.c @@ -273,17 +273,20 @@ static void cmd_save( irc_t *irc, char **cmd ) static void cmd_showset( irc_t *irc, set_t **head, char *key ) { + set_t *set; char *val; if( ( val = set_getstr( head, key ) ) ) irc_usermsg( irc, "%s = `%s'", key, val ); - else if( !set_find( head, key ) ) + else if( !( set = set_find( head, key ) ) ) { irc_usermsg( irc, "Setting `%s' does not exist.", key ); if( *head == irc->b->set ) irc_usermsg( irc, "It might be an account or channel setting. " "See \x02help account set\x02 and \x02help channel set\x02." ); } + else if( set->flags & SET_PASSWORD ) + irc_usermsg( irc, "%s = `********' (hidden)", key ); else irc_usermsg( irc, "%s is empty", key ); } -- cgit v1.2.3