Changeset 88eaf4b for set.c


Ignore:
Timestamp:
2010-06-06T01:24:13Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
16834a5
Parents:
1f0224c
Message:

buddy_sendbuffer should be renamed, since it has to work for users and
chats. For smooth transitions, add an old_key attribute to settings
which can be used as a (temporary) alias.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • set.c

    r1f0224c r88eaf4b  
    6969        while( s )
    7070        {
    71                 if( g_strcasecmp( s->key, key ) == 0 )
     71                if( g_strcasecmp( s->key, key ) == 0 ||
     72                    ( s->old_key && g_strcasecmp( s->old_key, key ) == 0 ) )
    7273                        break;
    7374                s = s->next;
     
    176177               
    177178                g_free( s->key );
    178                 if( s->value ) g_free( s->value );
    179                 if( s->def ) g_free( s->def );
     179                g_free( s->old_key );
     180                g_free( s->value );
     181                g_free( s->def );
    180182                g_free( s );
    181183        }
Note: See TracChangeset for help on using the changeset viewer.