Changes in conf.c [823de9d:90cd6c4]
Legend:
- Unmodified
- Added
- Removed
-
conf.c
r823de9d r90cd6c4 60 60 conf->pidfile = g_strdup( PIDFILE ); 61 61 conf->motdfile = g_strdup( ETCDIR "/motd.txt" ); 62 conf->welcomefile = g_strdup( ETCDIR "/welcome.txt" );63 62 conf->ping_interval = 180; 64 63 conf->ping_timeout = 300; 65 64 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 u:" ) ) >= 0 )81 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 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>] [- h]\n"130 " [-c <file>] [-d <dir>] [-x] [-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" 146 147 " -h Show this help page.\n" ); 147 148 return NULL; … … 249 250 g_free( conf->motdfile ); 250 251 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 );256 252 } 257 253 else if( g_strcasecmp( ini->key, "account_storage" ) == 0 ) … … 312 308 conf->user = g_strdup( ini->value ); 313 309 } 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 } 314 315 else 315 316 { 316 fprintf( stderr, "Error: Unknown setting `%s` in configuration file .\n", ini->key);317 fprintf( stderr, "Error: Unknown setting `%s` in configuration file (line %d).\n", ini->key, ini->line ); 317 318 return 0; 318 319 /* For now just ignore unknown keys... */ … … 321 322 else if( g_strcasecmp( ini->section, "defaults" ) != 0 ) 322 323 { 323 fprintf( stderr, "Error: Unknown section [%s] in configuration file . "324 "BitlBee configuration must be put in a [settings] section!\n", ini->section );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 ); 325 326 return 0; 326 327 }
Note: See TracChangeset
for help on using the changeset viewer.