Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r823de9d r489f996  
    6060        conf->pidfile = g_strdup( PIDFILE );
    6161        conf->motdfile = g_strdup( ETCDIR "/motd.txt" );
    62         conf->welcomefile = g_strdup( ETCDIR "/welcome.txt" );
    6362        conf->ping_interval = 180;
    6463        conf->ping_timeout = 300;
     
    7978        }
    8079       
    81         while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:" ) ) >= 0 )
     80        while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 0 )
    8281        /*     ^^^^ Just to make sure we skip this step from the REHASH handler. */
    8382        {
     
    249248                                g_free( conf->motdfile );
    250249                                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 );
    256250                        }
    257251                        else if( g_strcasecmp( ini->key, "account_storage" ) == 0 )
     
    314308                        else
    315309                        {
    316                                 fprintf( stderr, "Error: Unknown setting `%s` in configuration file.\n", ini->key );
     310                                fprintf( stderr, "Error: Unknown setting `%s` in configuration file (line %d).\n", ini->key, ini->line );
    317311                                return 0;
    318312                                /* For now just ignore unknown keys... */
     
    321315                else if( g_strcasecmp( ini->section, "defaults" ) != 0 )
    322316                {
    323                         fprintf( stderr, "Error: Unknown section [%s] in configuration file. "
    324                                          "BitlBee configuration must be put in a [settings] section!\n", ini->section );
     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 );
    325319                        return 0;
    326320                }
Note: See TracChangeset for help on using the changeset viewer.