Changes in conf.c [90cd6c4:823de9d]
Legend:
- Unmodified
- Added
- Removed
-
conf.c
r90cd6c4 r823de9d 60 60 conf->pidfile = g_strdup( PIDFILE ); 61 61 conf->motdfile = g_strdup( ETCDIR "/motd.txt" ); 62 conf->welcomefile = g_strdup( ETCDIR "/welcome.txt" ); 62 63 conf->ping_interval = 180; 63 64 conf->ping_timeout = 300; 64 65 conf->user = NULL; 65 conf->protocols = NULL;66 66 proxytype = 0; 67 67 … … 79 79 } 80 80 81 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:h R:u:" ) ) >= 0 )81 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hu:" ) ) >= 0 ) 82 82 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 83 83 { … … 128 128 { 129 129 printf( "Usage: bitlbee [-D/-F [-i <interface>] [-p <port>] [-n] [-v]] [-I]\n" 130 " [-c <file>] [-d <dir>] [- x] [-h]\n"130 " [-c <file>] [-d <dir>] [-h]\n" 131 131 "\n" 132 132 "An IRC-to-other-chat-networks gateway\n" … … 144 144 " -c Load alternative configuration file\n" 145 145 " -d Specify alternative user configuration directory\n" 146 " -x Command-line interface to password encryption/hashing\n"147 146 " -h Show this help page.\n" ); 148 147 return NULL; … … 250 249 g_free( conf->motdfile ); 251 250 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 ); 252 256 } 253 257 else if( g_strcasecmp( ini->key, "account_storage" ) == 0 ) … … 308 312 conf->user = g_strdup( ini->value ); 309 313 } 310 else if( g_strcasecmp( ini->key, "protocols" ) == 0 )311 {312 g_strfreev( conf->protocols );313 conf->protocols = g_strsplit_set( ini->value, " \t,;", -1 );314 }315 314 else 316 315 { 317 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 ); 318 317 return 0; 319 318 /* For now just ignore unknown keys... */ … … 322 321 else if( g_strcasecmp( ini->section, "defaults" ) != 0 ) 323 322 { 324 fprintf( stderr, "Error: Unknown section [%s] in configuration file (line %d). "325 "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 ); 326 325 return 0; 327 326 }
Note: See TracChangeset
for help on using the changeset viewer.