Changeset 9df916f for irc.c


Ignore:
Timestamp:
2005-12-09T20:48:45Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
34759e6
Parents:
c2295f7 (diff), 87c24ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge my storage abstraction changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rc2295f7 r9df916f  
    3232GSList *irc_connection_list = NULL;
    3333
    34 char *passchange (irc_t *irc, void *set, char *value)
    35 {
    36         setpassnc (irc, value);
     34static char *passchange (irc_t *irc, void *set, char *value)
     35{
     36        irc_setpass (irc, value);
    3737        return (NULL);
    3838}
     
    161161       
    162162        if( irc->status >= USTATUS_IDENTIFIED && set_getint( irc, "save_on_quit" ) )
    163                 if( !bitlbee_save( irc ) )
     163                if( !global.storage->save( irc, TRUE ) )
    164164                        irc_usermsg( irc, "Error while saving settings!" );
    165165       
     
    266266        if( global.conf->runmode == RUNMODE_INETD )
    267267                g_main_quit( global.loop );
     268}
     269
     270/* USE WITH CAUTION!
     271   Sets pass without checking */
     272void irc_setpass (irc_t *irc, const char *pass)
     273{
     274        if (irc->password) g_free (irc->password);
     275       
     276        if (pass) {
     277                irc->password = g_strdup (pass);
     278                irc_usermsg (irc, "Password successfully changed");
     279        } else {
     280                irc->password = NULL;
     281        }
    268282}
    269283
Note: See TracChangeset for help on using the changeset viewer.