Changeset 09d4922 for root_commands.c


Ignore:
Timestamp:
2010-11-21T19:34:59Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9564e55
Parents:
bdedc14
Message:

Be clearer about password settings being intentionally hidden (and not
really empty). Bug #657 and confusing BitlBee users since probably 2002.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    rbdedc14 r09d4922  
    274274static void cmd_showset( irc_t *irc, set_t **head, char *key )
    275275{
     276        set_t *set;
    276277        char *val;
    277278       
    278279        if( ( val = set_getstr( head, key ) ) )
    279280                irc_usermsg( irc, "%s = `%s'", key, val );
    280         else if( !set_find( head, key ) )
     281        else if( !( set = set_find( head, key ) ) )
    281282        {
    282283                irc_usermsg( irc, "Setting `%s' does not exist.", key );
     
    285286                                     "See \x02help account set\x02 and \x02help channel set\x02." );
    286287        }
     288        else if( set->flags & SET_PASSWORD )
     289                irc_usermsg( irc, "%s = `********' (hidden)", key );
    287290        else
    288291                irc_usermsg( irc, "%s is empty", key );
Note: See TracChangeset for help on using the changeset viewer.