aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-11-21 19:34:59 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-11-21 19:34:59 +0000
commit09d4922d3740eb0ad2e42e02ca5d57f03b263eab (patch)
tree8deb49d26bf6c54db4330c61711bac8429ea4d7b /root_commands.c
parentbdedc148f84406a4715a1e668ea767927740c790 (diff)
Be clearer about password settings being intentionally hidden (and not
really empty). Bug #657 and confusing BitlBee users since probably 2002.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c5
1 files changed, 4 insertions, 1 deletions
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 );
}