Changeset e7bc722 for chat.c


Ignore:
Timestamp:
2008-08-31T00:04:53Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0e639f5
Parents:
131c6b6
Message:

Integrated cmd_set() and the "account set" into one fully unreadable
cmd_set_real() function and using this to get a proper "chat set" command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chat.c

    r131c6b6 re7bc722  
    2929{
    3030        struct chat *c, *l;
     31        set_t *s;
    3132       
    3233        if( !chat_chanok( channel ) )
     
    5354        c->channel = g_strdup( channel );
    5455       
    55         set_add( &c->set, "auto_join", "false", set_eval_bool, c );
    56         set_add( &c->set, "auto_rejoin", "false", set_eval_bool, c );
    57         set_add( &c->set, "nick", NULL, NULL, c );
     56        s = set_add( &c->set, "auto_join", "false", set_eval_bool, c );
     57        s = set_add( &c->set, "auto_rejoin", "false", set_eval_bool, c );
     58        s = set_add( &c->set, "nick", NULL, NULL, c );
     59        s->flags |= SET_NULL_OK;
    5860       
    5961        return c;
Note: See TracChangeset for help on using the changeset viewer.