aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-03-17 15:15:19 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-03-17 15:15:19 +0000
commite8c8d00ea43c204ee276bde7fb663a0f0249790f (patch)
treea98fdef3c5885eb2eac2ba047e244b3fd3c0f800 /conf.c
parent1c3008ac0b2b29f7e14ec9b874af3277c511c7a4 (diff)
parentf9928cb319c2879a56b7280f09723b26035982d0 (diff)
Merging mainline.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index e41590d3..8687afea 100644
--- a/conf.c
+++ b/conf.c
@@ -65,6 +65,7 @@ conf_t *conf_load( int argc, char *argv[] )
conf->ft_max_size = SIZE_MAX;
conf->ft_max_kbps = G_MAXUINT;
conf->ft_listen = NULL;
+ conf->protocols = NULL;
proxytype = 0;
i = conf_loadini( conf, global.conf_file );
@@ -129,7 +130,7 @@ conf_t *conf_load( int argc, char *argv[] )
else if( opt == 'h' )
{
printf( "Usage: bitlbee [-D/-F [-i <interface>] [-p <port>] [-n] [-v]] [-I]\n"
- " [-c <file>] [-d <dir>] [-h]\n"
+ " [-c <file>] [-d <dir>] [-x] [-h]\n"
"\n"
"An IRC-to-other-chat-networks gateway\n"
"\n"
@@ -145,6 +146,7 @@ conf_t *conf_load( int argc, char *argv[] )
" -v Be verbose (only works in combination with -n)\n"
" -c Load alternative configuration file\n"
" -d Specify alternative user configuration directory\n"
+ " -x Command-line interface to password encryption/hashing\n"
" -h Show this help page.\n" );
return NULL;
}
@@ -332,6 +334,11 @@ static int conf_loadini( conf_t *conf, char *file )
g_free( conf->ft_listen );
conf->ft_listen = g_strdup( ini->value );
}
+ else if( g_strcasecmp( ini->key, "protocols" ) == 0 )
+ {
+ g_strfreev( conf->protocols );
+ conf->protocols = g_strsplit_set( ini->value, " \t,;", -1 );
+ }
else
{
fprintf( stderr, "Error: Unknown setting `%s` in configuration file (line %d).\n", ini->key, ini->line );