Changeset 5c9512f for root_commands.c


Ignore:
Timestamp:
2006-06-30T09:17:18Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0a3c243
Parents:
1719464
Message:

Made set.c API more generic so it's not specific to irc_t structures anymore,
but can be used for account_t structures too, for example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r1719464 r5c9512f  
    144144                irc_usermsg( irc, "Password accepted, settings and accounts loaded" );
    145145                irc_umode_set( irc, "+R", 1 );
    146                 if( set_getint( irc, "auto_connect" ) )
     146                if( set_getint( &irc->set, "auto_connect" ) )
    147147                        cmd_account( irc, account_on );
    148148                break;
     
    672672        if( cmd[1] && cmd[2] )
    673673        {
    674                 set_setstr( irc, cmd[1], cmd[2] );
     674                set_setstr( &irc->set, cmd[1], cmd[2] );
    675675               
    676676                if( ( strcmp( cmd[2], "=" ) ) == 0 && cmd[3] )
     
    679679        if( cmd[1] ) /* else 'forgotten' on purpose.. Must show new value after changing */
    680680        {
    681                 char *s = set_getstr( irc, cmd[1] );
     681                char *s = set_getstr( &irc->set, cmd[1] );
    682682                if( s )
    683683                        irc_usermsg( irc, "%s = `%s'", cmd[1], s );
Note: See TracChangeset for help on using the changeset viewer.