Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rb73ac9c r25d1be7  
    3131
    3232GSList *irc_connection_list = NULL;
    33 
    34 static char *passchange (irc_t *irc, void *set, char *value)
    35 {
    36         irc_setpass (irc, value);
    37         return (NULL);
    38 }
    3933
    4034irc_t *irc_new( int fd )
     
    135129        set_add( irc, "to_char", ": ", set_eval_to_char );
    136130        set_add( irc, "typing_notice", "false", set_eval_bool );
    137         set_add( irc, "password", NULL, passchange);
    138131       
    139132        conf_loaddefaults( irc );
     
    161154       
    162155        if( irc->status >= USTATUS_IDENTIFIED && set_getint( irc, "save_on_quit" ) )
    163                 if( storage_save( irc, TRUE ) != STORAGE_OK )
     156                if( !bitlbee_save( irc ) )
    164157                        irc_usermsg( irc, "Error while saving settings!" );
    165158       
     
    266259        if( global.conf->runmode == RUNMODE_INETD )
    267260                g_main_quit( global.loop );
    268 }
    269 
    270 /* USE WITH CAUTION!
    271    Sets pass without checking */
    272 void 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         }
    282261}
    283262
Note: See TracChangeset for help on using the changeset viewer.