Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r489f996 r823de9d  
    6060        conf->pidfile = g_strdup( PIDFILE );
    6161        conf->motdfile = g_strdup( ETCDIR "/motd.txt" );
     62        conf->welcomefile = g_strdup( ETCDIR "/welcome.txt" );
    6263        conf->ping_interval = 180;
    6364        conf->ping_timeout = 300;
     
    7879        }
    7980       
    80         while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 0 )
     81        while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:" ) ) >= 0 )
    8182        /*     ^^^^ Just to make sure we skip this step from the REHASH handler. */
    8283        {
     
    248249                                g_free( conf->motdfile );
    249250                                conf->motdfile = g_strdup( ini->value );
     251                        }
     252                        else if( g_strcasecmp( ini->key, "welcomefile" ) == 0 )
     253                        {
     254                                g_free( conf->welcomefile );
     255                                conf->welcomefile = g_strdup( ini->value );
    250256                        }
    251257                        else if( g_strcasecmp( ini->key, "account_storage" ) == 0 )
     
    308314                        else
    309315                        {
    310                                 fprintf( stderr, "Error: Unknown setting `%s` in configuration file (line %d).\n", ini->key, ini->line );
     316                                fprintf( stderr, "Error: Unknown setting `%s` in configuration file.\n", ini->key );
    311317                                return 0;
    312318                                /* For now just ignore unknown keys... */
     
    315321                else if( g_strcasecmp( ini->section, "defaults" ) != 0 )
    316322                {
    317                         fprintf( stderr, "Error: Unknown section [%s] in configuration file (line %d). "
    318                                          "BitlBee configuration must be put in a [settings] section!\n", ini->section, ini->line );
     323                        fprintf( stderr, "Error: Unknown section [%s] in configuration file. "
     324                                         "BitlBee configuration must be put in a [settings] section!\n", ini->section );
    319325                        return 0;
    320326                }
Note: See TracChangeset for help on using the changeset viewer.