Changeset 09d4922
- Timestamp:
- 2010-11-21T19:34:59Z (14 years ago)
- Branches:
- master
- Children:
- 9564e55
- Parents:
- bdedc14
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rbdedc14 r09d4922 123 123 s->old_key = g_strdup( "buddy_sendbuffer_delay" ); 124 124 s = set_add( &b->set, "password", NULL, set_eval_password, irc ); 125 s->flags |= SET_NULL_OK ;125 s->flags |= SET_NULL_OK | SET_PASSWORD; 126 126 s = set_add( &b->set, "private", "true", set_eval_bool, irc ); 127 127 s = set_add( &b->set, "query_order", "lifo", NULL, irc ); -
protocols/account.c
rbdedc14 r09d4922 64 64 65 65 s = set_add( &a->set, "password", NULL, set_eval_account, a ); 66 s->flags |= ACC_SET_NOSAVE | SET_NULL_OK ;66 s->flags |= ACC_SET_NOSAVE | SET_NULL_OK | SET_PASSWORD; 67 67 68 68 s = set_add( &a->set, "tag", NULL, set_eval_account, a ); -
root_commands.c
rbdedc14 r09d4922 274 274 static void cmd_showset( irc_t *irc, set_t **head, char *key ) 275 275 { 276 set_t *set; 276 277 char *val; 277 278 278 279 if( ( val = set_getstr( head, key ) ) ) 279 280 irc_usermsg( irc, "%s = `%s'", key, val ); 280 else if( ! set_find( head, key) )281 else if( !( set = set_find( head, key ) ) ) 281 282 { 282 283 irc_usermsg( irc, "Setting `%s' does not exist.", key ); … … 285 286 "See \x02help account set\x02 and \x02help channel set\x02." ); 286 287 } 288 else if( set->flags & SET_PASSWORD ) 289 irc_usermsg( irc, "%s = `********' (hidden)", key ); 287 290 else 288 291 irc_usermsg( irc, "%s is empty", key ); -
set.h
rbdedc14 r09d4922 48 48 SET_NULL_OK = 0x0100, 49 49 SET_HIDDEN = 0x0200, 50 SET_PASSWORD = 0x0400, 50 51 } set_flags_t; 51 52
Note: See TracChangeset
for help on using the changeset viewer.