Changeset d4a4f1a for irc_channel.c


Ignore:
Timestamp:
2013-10-14T16:02:04Z (6 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
08224f5, e73e165
Parents:
a685409
Message:

Don't save the "type" channel setting, it's an XML attribute already. This
fix is ugly as it's putting a detail relevant to XML storage elsewhere in
the code. But I don't think we should have any other storage formats anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    ra685409 rd4a4f1a  
    3535{
    3636        irc_channel_t *ic;
     37        set_t *s;
    3738       
    3839        if( !irc_channel_name_ok( name ) || irc_channel_by_name( irc, name ) )
     
    4950       
    5051        set_add( &ic->set, "auto_join", "false", set_eval_bool, ic );
    51         set_add( &ic->set, "type", "control", set_eval_channel_type, ic );
     52       
     53        s = set_add( &ic->set, "type", "control", set_eval_channel_type, ic );
     54        s->flags |= SET_NOSAVE;    /* Layer violation (XML format detail) */
    5255       
    5356        if( name[0] == '&' )
Note: See TracChangeset for help on using the changeset viewer.