Changeset 5df65bd


Ignore:
Timestamp:
2010-11-21T16:14:03Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
694be84
Parents:
495d21b
Message:

Don't save the global "away" settings, leave that to the IRC /AWAY info
coming from the IRC client. Also, hide it from the settings list, it
doesn't belong there.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee.c

    r495d21b r5df65bd  
    3434        set_t *s;
    3535       
    36         s = set_add( &b->set, "away", NULL, set_eval_away_status, b );
    37         s->flags |= SET_NULL_OK;
    3836        s = set_add( &b->set, "auto_connect", "true", set_eval_bool, b );
    3937        s = set_add( &b->set, "auto_reconnect", "true", set_eval_bool, b );
    4038        s = set_add( &b->set, "auto_reconnect_delay", "5*3<900", set_eval_account_reconnect_delay, b );
     39        s = set_add( &b->set, "away", NULL, set_eval_away_status, b );
     40        s->flags |= SET_NULL_OK | SET_HIDDEN;
    4141        s = set_add( &b->set, "debug", "false", set_eval_bool, b );
    4242        s = set_add( &b->set, "mobile_is_away", "false", set_eval_bool, b );
  • set.h

    r495d21b r5df65bd  
    4545typedef enum
    4646{
     47        SET_NOSAVE = 0x0001,
    4748        SET_NULL_OK = 0x0100,
    4849        SET_HIDDEN = 0x0200,
  • storage_xml.c

    r495d21b r5df65bd  
    494494       
    495495        for( set = irc->b->set; set; set = set->next )
    496                 if( set->value )
     496                if( set->value && !( set->flags & SET_NOSAVE ) )
    497497                        if( !xml_printf( fd, 1, "<setting name=\"%s\">%s</setting>\n", set->key, set->value ) )
    498498                                goto write_error;
Note: See TracChangeset for help on using the changeset viewer.